Dynalite listener for config entry update (#32116)

* added entry listener that reloads the component

* fixed update with existing entry

* fixed import in test

* fixes

* library version

* removed unique_id

* fix

* fixed for no entries in hass.data

* fixed return value on abort

* moved to use async_entries

* removed unused import
This commit is contained in:
Ziv authored and GitHub committed 2020-02-27 22:05:55 -08:00
1 parent b9fa32444a
commit 02c170b961
9 files changed
+54 -20

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
"""Common functions for the Dynalite tests."""
from homeassistant.components import dynalite
def get_bridge_from_hass(hass_obj):
"""Get the bridge from hass.data."""
key = next(iter(hass_obj.data[dynalite.DOMAIN]))
return hass_obj.data[dynalite.DOMAIN][key]