Update power state representation in HassSystemClient to use string literals
This commit is contained in:
parent
2137378f07
commit
9b3df6416e
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ class HassSystemClient(HassClient):
|
||||||
@property
|
@property
|
||||||
def state_payload(self) -> dict[str, Any]:
|
def state_payload(self) -> dict[str, Any]:
|
||||||
return {
|
return {
|
||||||
"power": self.power_on,
|
"power": "POWER_ON" if self.power_on else "POWER_OFF",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue