mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Fix Command Line update twice issue (#94672)
Command Line update twice issue
This commit is contained in:
@@ -238,7 +238,7 @@ class CommandSwitch(ManualTriggerEntity, SwitchEntity):
|
||||
if payload or value:
|
||||
self._attr_is_on = (value or payload).lower() == "true"
|
||||
self._process_manual_data(payload)
|
||||
await self.async_update_ha_state(True)
|
||||
self.async_write_ha_state()
|
||||
|
||||
async def async_update(self) -> None:
|
||||
"""Update the entity.
|
||||
|
||||
Reference in New Issue
Block a user