🚑 Fixes Toon doing I/O in coroutines (#21657)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-03-04 15:52:00 -08:00
1 parent 641138a986
commit 73b100d3af
5 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -134,7 +134,7 @@ class ToonSensor(ToonEntity):
"""Return the unit this state is expressed in."""
return self._unit_of_measurement
async def async_update(self) -> None:
def update(self) -> None:
"""Get the latest data from the sensor."""
section = getattr(self.toon, self.section)
value = None