mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +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,
|
||||
_LOGGER,
|
||||
name=DOMAIN,
|
||||
update_interval=DEVICE_SCAN_INTERVAL[device.device_type]
|
||||
or DEFAULT_SCAN_INTERVAL,
|
||||
update_interval=DEVICE_SCAN_INTERVAL.get(device.device_type, DEFAULT_SCAN_INTERVAL),
|
||||
)
|
||||
self._api = api
|
||||
self._device_id = device.device_id
|
||||
|
Reference in New Issue
Block a user