Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof
2020-08-27 13:56:20 +02:00
committed by GitHub
parent 0d7eec710c
commit 1c2ebdf307
574 changed files with 4389 additions and 1725 deletions

View File

@@ -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: