Update homeassistant/components/switchbot_cloud/coordinator.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
Laurence Presland
2024-04-13 22:27:25 +10:00
committed by GitHub
parent 87376ec310
commit 93b2e6cbb7

View File

@@ -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