Explicitly pass in the config_entry in system_bridge coordinator (#137921)
explicitly pass in the config_entry in coordinatorpull/138061/head
parent
fb0db36886
commit
7eb0171657
|
@ -40,6 +40,8 @@ from .data import SystemBridgeData
|
|||
class SystemBridgeDataUpdateCoordinator(DataUpdateCoordinator[SystemBridgeData]):
|
||||
"""Class to manage fetching System Bridge data from single endpoint."""
|
||||
|
||||
config_entry: ConfigEntry
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
hass: HomeAssistant,
|
||||
|
@ -65,6 +67,7 @@ class SystemBridgeDataUpdateCoordinator(DataUpdateCoordinator[SystemBridgeData])
|
|||
super().__init__(
|
||||
hass,
|
||||
LOGGER,
|
||||
config_entry=entry,
|
||||
name=DOMAIN,
|
||||
update_interval=timedelta(seconds=30),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue