Skip to content

Commit

Permalink
Merge pull request #48 from tadasdanielius/47-add-support-for-roomtem…
Browse files Browse the repository at this point in the history
…peratureheating-operation

create room temperature control sensor
  • Loading branch information
tadasdanielius authored Dec 9, 2022
2 parents fc0cc5a + 2b12aea commit 1325554
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions custom_components/daikin_altherma/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ async def async_setup_entry(hass, entry, async_add_entities):
else:
_LOGGER.error(f'Profile (TargetTemperatureNight) is not dictionary!')

if 'RoomTemperatureHeating' in operations:
profile = operations['RoomTemperatureHeating']
if type(profile) is dict:
entities.append(
GenericOperationControl(
coordinator, api, 'Room Temperature', 'RoomTemperatureHeating', profile
)
)
else:
_LOGGER.error(f'Room Temperature (RoomTemperatureHeating) is not a dictionary!')

#async_add_entities([
# AlthermaUnitTemperatureControl(coordinator, api)
#], update_before_add=False)
Expand Down

0 comments on commit 1325554

Please sign in to comment.