From 555bd47defe7f0fc04c06e19970448307159f863 Mon Sep 17 00:00:00 2001 From: Rob Coleman Date: Sun, 8 Jan 2023 14:40:04 -0800 Subject: [PATCH 1/2] Add a logger for easier debug --- custom_components/lamarzocco/manifest.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/lamarzocco/manifest.json b/custom_components/lamarzocco/manifest.json index 74ee7c7..9886eb6 100644 --- a/custom_components/lamarzocco/manifest.json +++ b/custom_components/lamarzocco/manifest.json @@ -11,5 +11,6 @@ "homekit": {}, "dependencies": [], "codeowners": ["@rccoleman"], - "iot_class": "local_polling" + "iot_class": "local_polling", + "loggers": ["lmdirect"] } From ad272583f7737a52e0a23d2a882c797778237bb2 Mon Sep 17 00:00:00 2001 From: Rob Coleman Date: Tue, 10 Jan 2023 09:55:52 -0800 Subject: [PATCH 2/2] Change the entity state to comply with the docs --- custom_components/lamarzocco/water_heater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/lamarzocco/water_heater.py b/custom_components/lamarzocco/water_heater.py index 0cd91cb..ce5ac63 100644 --- a/custom_components/lamarzocco/water_heater.py +++ b/custom_components/lamarzocco/water_heater.py @@ -6,6 +6,7 @@ SUPPORT_TARGET_TEMPERATURE, ATTR_CURRENT_TEMPERATURE, ATTR_TEMPERATURE, + STATE_ELECTRIC, WaterHeaterEntity, ) from homeassistant.const import PRECISION_TENTHS, TEMP_CELSIUS @@ -110,7 +111,7 @@ def __init__(self, lm, water_heater_type, hass, config_entry): @property def state(self): """State of the water heater.""" - return self.current_temperature + return STATE_ELECTRIC @property def current_temperature(self):