From 93b2e6cbb777c90af3fcda2d3fb16e198b614be0 Mon Sep 17 00:00:00 2001 From: Laurence Presland <22112431+laurence-presland@users.noreply.github.com> Date: Sat, 13 Apr 2024 22:27:25 +1000 Subject: [PATCH] Update homeassistant/components/switchbot_cloud/coordinator.py Co-authored-by: Joost Lekkerkerker --- homeassistant/components/switchbot_cloud/coordinator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/switchbot_cloud/coordinator.py b/homeassistant/components/switchbot_cloud/coordinator.py index 37ce2302dfe..3e32f4f4639 100644 --- a/homeassistant/components/switchbot_cloud/coordinator.py +++ b/homeassistant/components/switchbot_cloud/coordinator.py @@ -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