From 9b3df6416e96393b87a1f754d9f18cbb30a17956 Mon Sep 17 00:00:00 2001
From: "Edgar P. Burkhart" <git@edgarpierre.fr>
Date: Sun, 9 Mar 2025 12:34:14 +0100
Subject: [PATCH] Update power state representation in HassSystemClient to use
 string literals

---
 hasspy/mqtt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hasspy/mqtt.py b/hasspy/mqtt.py
index c78fc7a..e2d70ff 100644
--- a/hasspy/mqtt.py
+++ b/hasspy/mqtt.py
@@ -168,7 +168,7 @@ class HassSystemClient(HassClient):
     @property
     def state_payload(self) -> dict[str, Any]:
         return {
-            "power": self.power_on,
+            "power": "POWER_ON" if self.power_on else "POWER_OFF",
         }