Add button to trigger ota firmware update for Shelly devices (#58757)

Co-authored-by: Shay Levy <levyshay1@gmail.com>
This commit is contained in:
Michael 2021-11-26 14:19:39 +01:00 committed by GitHub
parent ea102f71a6
commit 296b738740
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 270 additions and 3 deletions

View file

@ -74,6 +74,7 @@ async def async_setup_rpc_entry(
) -> None:
"""Set up entities for RPC device."""
wrapper = hass.data[DOMAIN][DATA_CONFIG_ENTRY][config_entry.entry_id][RPC]
switch_key_ids = get_rpc_key_ids(wrapper.device.status, "switch")
switch_ids = []