Add button to trigger ota firmware update for Shelly devices#58757
Add button to trigger ota firmware update for Shelly devices#58757frenck merged 29 commits intohome-assistant:devfrom
Conversation
|
Hey there @balloob, @bieniu, @thecode, @chemelli74, mind taking a look at this pull request as it has been labeled with an integration ( |
fa25b11 to
bbc56c9
Compare
|
as discussed on Discord, split this PR into 3 parts
Those this PR goes back into draft, until 1) and 2) are done |
bb51f4b to
b603e16
Compare
daf6c43 to
d684a74
Compare
d419458 to
df702e8
Compare
|
support for battery powered devices has been removed, since there are to many challenges with them, which solution would overwhelm this PR. |
|
recent changes
|
a637f98 to
8a49e60
Compare
| state = hass.states.get("button.test_name_ota_update_beta") | ||
|
|
||
| assert entry | ||
| assert state is None |
There was a problem hiding this comment.
After pressing the button, the state should be the time the button was pressed, not None. There seems to be something wrong?
There was a problem hiding this comment.
it is not the state.state ... it is just the check that the beta button is not enabled by default, so not present in the state machine
There was a problem hiding this comment.
is not enabled by default, so not present in the state machine
In that case, I'm confused, why can it be called by the above service call in that case? If the button entity isn't enabled, that shouldn't be working...
There was a problem hiding this comment.
the service call is for button.test_name_ota_update (without beta suffix) ;)
There was a problem hiding this comment.
it's ok ... the weekend is near ... take a beer and relax 🍻
…sistant#58757) Co-authored-by: Shay Levy <levyshay1@gmail.com>

Proposed change
This will add a new service to the Shelly integration which allows the user to trigger an ota firmware update for their Shelly devices(follow-up of #57005 (comment))This add two new button entities to trigger a so called OTA firmware update of Shelly devices, each one for stable and beta (disabled by default) channel.
This is limited to only update to latest stable or beta release (uploading an image or triggered update from specified url is out of scope and will not be integrated).
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: