mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Prevent unnecessary updates of zone component (#38167)
This commit is contained in:
parent
69203b5373
commit
8943954b18
@ -323,6 +323,8 @@ class Zone(entity.Entity):
|
|||||||
|
|
||||||
async def async_update_config(self, config: Dict) -> None:
|
async def async_update_config(self, config: Dict) -> None:
|
||||||
"""Handle when the config is updated."""
|
"""Handle when the config is updated."""
|
||||||
|
if self._config == config:
|
||||||
|
return
|
||||||
self._config = config
|
self._config = config
|
||||||
self._generate_attrs()
|
self._generate_attrs()
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user