Restrict HA entity list to sensor. domain only

This commit is contained in:
2026-04-14 02:02:50 -05:00
parent 24feeb4fe4
commit f08441e799
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class HomeAssistantClient:
result = []
for s in resp.json():
eid = s.get("entity_id", "")
if eid.startswith("binary_sensor."):
if not eid.startswith("sensor."):
continue
attrs = s.get("attributes", {})
if (attrs.get("device_class") == "battery"