Fix incorrect warn of async_update_ha_state use (#91387)
This commit is contained in:
parent
b7b22b79d1
commit
32344a8488
2 changed files with 8 additions and 2 deletions
|
@ -555,8 +555,7 @@ class Entity(ABC):
|
|||
except Exception: # pylint: disable=broad-except
|
||||
_LOGGER.exception("Update for %s fails", self.entity_id)
|
||||
return
|
||||
|
||||
if not self._async_update_ha_state_reported:
|
||||
elif not self._async_update_ha_state_reported:
|
||||
report_issue = self._suggest_report_issue()
|
||||
_LOGGER.warning(
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue