mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 03:07:50 +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."""
|
||||
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…
x
Reference in New Issue
Block a user