Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions homeassistant/components/econet/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
ATTR_START_DATE = "start_date"
ATTR_END_DATE = "end_date"

ATTR_LOWER_TEMP = "lower_temp"
ATTR_UPPER_TEMP = "upper_temp"
ATTR_AMBIENT_TEMP = "ambient_temp"
ATTR_IS_ENABLED = "is_enabled"

SUPPORT_FLAGS_HEATER = SUPPORT_TARGET_TEMPERATURE | SUPPORT_OPERATION_MODE

ADD_VACATION_SCHEMA = vol.Schema(
Expand Down Expand Up @@ -168,6 +173,11 @@ def device_state_attributes(self):
data[ATTR_TODAYS_ENERGY_USAGE] = todays_usage
data[ATTR_IN_USE] = self.water_heater.in_use

data[ATTR_LOWER_TEMP] = round(self.water_heater.lower_temp, 2)
data[ATTR_UPPER_TEMP] = round(self.water_heater.upper_temp, 2)
data[ATTR_AMBIENT_TEMP] = round(self.water_heater.ambient_temp, 2)
data[ATTR_IS_ENABLED] = self.water_heater.is_enabled

return data

@property
Expand Down