Skip to content
Merged
Changes from 1 commit
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
14 changes: 12 additions & 2 deletions homeassistant/components/climate/melissa.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ def fan_list(self):
@property
def target_temperature(self):
"""Return the temperature we try to reach."""
if self._cur_settings is not None:
return self._cur_settings[self._api.TEMP]
if self._cur_settings is None:
return None
return self._cur_settings[self._api.TEMP]

@property
def state(self):
Expand All @@ -123,6 +124,15 @@ def state(self):
return self.melissa_state_to_hass(
self._cur_settings[self._api.STATE])

@property
def state_attributes(self):
"""Add the attributes that's available."""
data = super(MelissaClimate, self).state_attributes
Comment thread
kennedyshead marked this conversation as resolved.
Outdated
add_data = self._data.copy()
add_data.pop('temp')
data.update(add_data)
return data

@property
def temperature_unit(self):
"""Return the unit of measurement which this thermostat uses."""
Expand Down