mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Melissa state_attributes (#18201)
* Melissa attributes * overide device_state_attributes rather than state_attributes * Selected attributes * Adding current humidity rather than a state_attribute
This commit is contained in:
parent
34d7758b4a
commit
c6f3c239bb
@ -88,6 +88,12 @@ class MelissaClimate(ClimateDevice):
|
|||||||
if self._data:
|
if self._data:
|
||||||
return self._data[self._api.TEMP]
|
return self._data[self._api.TEMP]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def current_humidity(self):
|
||||||
|
"""Return the current humidity value."""
|
||||||
|
if self._data:
|
||||||
|
return self._data[self._api.HUMIDITY]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def target_temperature_step(self):
|
def target_temperature_step(self):
|
||||||
"""Return the supported step of target temperature."""
|
"""Return the supported step of target temperature."""
|
||||||
@ -113,7 +119,8 @@ class MelissaClimate(ClimateDevice):
|
|||||||
@property
|
@property
|
||||||
def target_temperature(self):
|
def target_temperature(self):
|
||||||
"""Return the temperature we try to reach."""
|
"""Return the temperature we try to reach."""
|
||||||
if self._cur_settings is not None:
|
if self._cur_settings is None:
|
||||||
|
return None
|
||||||
return self._cur_settings[self._api.TEMP]
|
return self._cur_settings[self._api.TEMP]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user