Skip to content

Commit 143a37c

Browse files
authored
Fix Update Coordinator (#89)
1 parent 462fbaa commit 143a37c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

custom_components/ta_cmi/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ def __init__(
9797

9898
for dev_raw in devices:
9999
device_id: str = dev_raw[CONF_DEVICE_ID]
100-
device: Device = Device(device_id, cmi_api, self._coe_sleep_function)
100+
device: Device = Device(
101+
device_id, cmi_api, CMIDataUpdateCoordinator._coe_sleep_function
102+
)
101103

102104
if CONF_DEVICE_TYPE in dev_raw:
103105
device.set_device_type(dev_raw[CONF_DEVICE_TYPE])

0 commit comments

Comments
 (0)