Prevent unnecessary updates of zone component (#38167)
This commit is contained in:
1 parent
69203b5373
commit
8943954b18
1 file changed
+2
@@ -323,6 +323,8 @@ class Zone(entity.Entity):
|
||||
|
||||
async def async_update_config(self, config: Dict) -> None:
|
||||
"""Handle when the config is updated."""
|
||||
if self._config == config:
|
||||
return
|
||||
self._config = config
|
||||
self._generate_attrs()
|
||||
self.async_write_ha_state()
|
||||
|
||||
Reference in new issue
Block a user