🚑 Fixes Toon doing I/O in coroutines (#21657)
This commit is contained in:
1 parent
641138a986
commit
73b100d3af
5 files changed
+18
-18
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user