Skip to content

Commit

Permalink
Format ota.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Mar 18, 2022
1 parent 0612f50 commit ab97380
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/zha_toolkit/ota.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
async def ota_update_images(
app, listener, ieee, cmd, data, service, params, event_data
):
for _, (ota, done) in app.ota._listeners.items():
for _, (ota, _) in app.ota._listeners.items():
await ota.refresh_firmware_list()


async def ota_notify(
app, listener, ieee, cmd, data, service, params, event_data
):
await ota_update_images(app, listener, ieee, cmd, data, service, params, event_data)
await ota_update_images(
app, listener, ieee, cmd, data, service, params, event_data
)

if ieee is None:
LOGGER.error("missing ieee")
Expand Down

0 comments on commit ab97380

Please sign in to comment.