Update mypy to 0.990 (#81783)
* Update mypy to 0.990 * Remove type ignore - overriding attr with property (13475) * Remove type ignores - hasattr (13544) * Adjust type ignore - assignment (13549) * New error code - type-abstract (13785) * Disable annotation-unchecked (13851)
This commit is contained in:
parent
2082026ff5
commit
0c8eeaa643
15 changed files with 26 additions and 34 deletions
|
@ -705,9 +705,9 @@ class Entity(ABC):
|
|||
try:
|
||||
task: asyncio.Future[None]
|
||||
if hasattr(self, "async_update"):
|
||||
task = self.hass.async_create_task(self.async_update()) # type: ignore[attr-defined]
|
||||
task = self.hass.async_create_task(self.async_update())
|
||||
elif hasattr(self, "update"):
|
||||
task = self.hass.async_add_executor_job(self.update) # type: ignore[attr-defined]
|
||||
task = self.hass.async_add_executor_job(self.update)
|
||||
else:
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue