Remove duplicate async_write_ha_state thread safety check (#116086)

This commit is contained in:
J. Nick Koston 2024-04-24 12:46:16 +02:00 committed by GitHub
parent e3984cd50a
commit df12789e08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -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