mirror of
https://github.com/home-assistant/core.git
synced 2025-12-22 20:09:35 +00:00
* 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
10 lines
273 B
Python
Executable File
10 lines
273 B
Python
Executable File
"""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]
|