From df12789e0802adea8830f58d0c2586cfe88a3a8c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 24 Apr 2024 12:46:16 +0200 Subject: [PATCH] Remove duplicate async_write_ha_state thread safety check (#116086) --- homeassistant/helpers/entity.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index cf21882eec8..a91b4c32d21 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -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