Remove duplicate async_write_ha_state thread safety check (#116086)
This commit is contained in:
parent
e3984cd50a
commit
df12789e08
1 changed files with 0 additions and 2 deletions
|
@ -972,8 +972,6 @@ class Entity(
|
|||
"""Verify the entity is in a writable state."""
|
||||
if self.hass is None:
|
||||
raise RuntimeError(f"Attribute hass is None for {self}")
|
||||
if self.hass.config.debug:
|
||||
self.hass.verify_event_loop_thread("async_write_ha_state")
|
||||
|
||||
# The check for self.platform guards against integrations not using an
|
||||
# EntityComponent and can be removed in HA Core 2024.1
|
||||
|
|
Loading…
Add table
Reference in a new issue