diff --git a/custom_components/intellicenter/water_heater.py b/custom_components/intellicenter/water_heater.py index 039de58..45a2a3c 100644 --- a/custom_components/intellicenter/water_heater.py +++ b/custom_components/intellicenter/water_heater.py @@ -8,7 +8,7 @@ WaterHeaterEntityFeature, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import ATTR_TEMPERATURE, STATE_IDLE, STATE_OFF, STATE_ON +from homeassistant.const import ATTR_TEMPERATURE, STATE_OFF from homeassistant.helpers.restore_state import RestoreEntity from homeassistant.core import HomeAssistant @@ -104,16 +104,6 @@ def extra_state_attributes(self) -> Optional[dict[str, Any]]: return state_attributes - @property - def state(self) -> str: - """Return the current state.""" - status = self._poolObject[STATUS_ATTR] - heater = self._poolObject[HEATER_ATTR] - if status == "OFF" or heater == NULL_OBJNAM: - return STATE_OFF - htmode = self._poolObject[HTMODE_ATTR] - return STATE_ON if htmode != "0" else STATE_IDLE - @property def unique_id(self): """Return a unique ID."""