mirror of
https://github.com/home-assistant/core.git
synced 2025-05-02 05:07:52 +00:00
Remove duplicate async_write_ha_state thread safety check (#116086)
This commit is contained in:
parent
e3984cd50a
commit
df12789e08
@ -972,8 +972,6 @@ class Entity(
|
|||||||
"""Verify the entity is in a writable state."""
|
"""Verify the entity is in a writable state."""
|
||||||
if self.hass is None:
|
if self.hass is None:
|
||||||
raise RuntimeError(f"Attribute hass is None for {self}")
|
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
|
# The check for self.platform guards against integrations not using an
|
||||||
# EntityComponent and can be removed in HA Core 2024.1
|
# EntityComponent and can be removed in HA Core 2024.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user