New action service to update access token
This release brings a new action service to inject access tokens from the browser into Home Assistant. It is a little but significant addition leading to the next little thing I am working on: Semi-automated update of Novafos data in Home Assistant using an extension in the browser.
But already now the action service can be used like so:
curl -X POST -H "Authorization: Bearer <long lived HA token>" -H "Content-Type: application/json" -d "{\"access_token\": \"<1523 character token from Novafos>\"}" http://homeassistant.local:8123/api/services/novafos/update_token
You can make a shell script or whatever already now to use the action service.
For now I consider the feature unstable as it has only been tested like above, and not end-to-end with the Chrome extension coming up.
Full Changelog: v4.1.4...v4.2.0