mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Update homeassistant/components/switchbot_cloud/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
committed by
GitHub
parent
87376ec310
commit
93b2e6cbb7
@@ -30,8 +30,7 @@ class SwitchBotCoordinator(DataUpdateCoordinator[Status]):
|
|||||||
hass,
|
hass,
|
||||||
_LOGGER,
|
_LOGGER,
|
||||||
name=DOMAIN,
|
name=DOMAIN,
|
||||||
update_interval=DEVICE_SCAN_INTERVAL[device.device_type]
|
update_interval=DEVICE_SCAN_INTERVAL.get(device.device_type, DEFAULT_SCAN_INTERVAL),
|
||||||
or DEFAULT_SCAN_INTERVAL,
|
|
||||||
)
|
)
|
||||||
self._api = api
|
self._api = api
|
||||||
self._device_id = device.device_id
|
self._device_id = device.device_id
|
||||||
|
Reference in New Issue
Block a user