From f7a3b933f86282216b7bd67fd9e22c2373d674b5 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Wed, 25 Jan 2023 16:35:11 +0200 Subject: [PATCH] Use the appropriate attribute for the Window sensor (#39) --- custom_components/dbuezas_eq3btsmart/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/dbuezas_eq3btsmart/binary_sensor.py b/custom_components/dbuezas_eq3btsmart/binary_sensor.py index a4951b5..115eb73 100644 --- a/custom_components/dbuezas_eq3btsmart/binary_sensor.py +++ b/custom_components/dbuezas_eq3btsmart/binary_sensor.py @@ -116,7 +116,7 @@ def __init__(self, _thermostat: Thermostat): self._attr_device_class = "window" @property - def state(self): + def is_on(self): return self._thermostat.window_open