From c0845a3650c8ff3d16e4f789db685083c948ed52 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 17 Oct 2020 08:38:42 -0500 Subject: [PATCH] Prevent ios sensor updates from running in the executor (#41986) The update was only checking an existing dict --- homeassistant/components/ios/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/ios/sensor.py b/homeassistant/components/ios/sensor.py index 89082a80830..01520063ccb 100644 --- a/homeassistant/components/ios/sensor.py +++ b/homeassistant/components/ios/sensor.py @@ -114,7 +114,7 @@ class IOSSensor(Entity): return icon_state return icon_for_battery_level(battery_level=battery_level, charging=charging) - def update(self): + async def async_update(self): """Get the latest state of the sensor.""" self._device = ios.devices(self.hass).get(self._device_name) self._state = self._device[ios.ATTR_BATTERY][self.type]