Skip to content

Commit

Permalink
File OTA provider should be preferred (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Sep 29, 2020
1 parent f9d2f7c commit d83e55b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zigpy/ota/__init__.py
Expand Up @@ -53,10 +53,10 @@ def __init__(self, app: ControllerApplicationType, *args, **kwargs):
self._not_initialized = True
self._listeners = {}
ota_config = app.config[CONF_OTA]
if ota_config[CONF_OTA_IKEA]:
self.add_listener(zigpy.ota.provider.Trådfri())
if ota_config[CONF_OTA_DIR]:
self.add_listener(zigpy.ota.provider.FileStore())
if ota_config[CONF_OTA_IKEA]:
self.add_listener(zigpy.ota.provider.Trådfri())
if ota_config[CONF_OTA_LEDVANCE]:
self.add_listener(zigpy.ota.provider.Ledvance())

Expand Down

0 comments on commit d83e55b

Please sign in to comment.