Return empty dictionary at first for attributes (#41348)
This commit is contained in:
parent
4d12fcc218
commit
61d9067a49
16 changed files with 75 additions and 77 deletions
|
@ -287,9 +287,9 @@ class MaxCubeClimate(ClimateEntity):
|
|||
cube = self._cubehandle.cube
|
||||
device = cube.device_by_rf(self._rf_address)
|
||||
|
||||
if cube.is_thermostat(device):
|
||||
return {ATTR_VALVE_POSITION: device.valve_position}
|
||||
return {}
|
||||
if not cube.is_thermostat(device):
|
||||
return {}
|
||||
return {ATTR_VALVE_POSITION: device.valve_position}
|
||||
|
||||
def update(self):
|
||||
"""Get latest data from MAX! Cube."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue