mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 04:20:17 +00:00
Upgrade black to 20.8b1 (#39287)
This commit is contained in:
@@ -468,9 +468,7 @@ class Entity(ABC):
|
||||
if hasattr(self, "async_update"):
|
||||
await self.async_update() # type: ignore
|
||||
elif hasattr(self, "update"):
|
||||
await self.hass.async_add_executor_job(
|
||||
self.update # type: ignore
|
||||
)
|
||||
await self.hass.async_add_executor_job(self.update) # type: ignore
|
||||
finally:
|
||||
self._update_staged = False
|
||||
if warning:
|
||||
|
||||
Reference in New Issue
Block a user