Skip to content

Commit

Permalink
Retain volatile optional pcb settings (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagbag authored Sep 6, 2024
1 parent 7e8c670 commit bf428ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/aquarea/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,9 @@ def build_numbers(mqtt_prefix: str) -> list[HeishaMonNumberEntityDescription]:
),
HeishaMonNumberEntityDescription(
heishamon_topic_id="SetDemandControl",
key=f"{mqtt_prefix}main/FakeDemandControl", # FIXME: find how to get real value
key=f"{mqtt_prefix}commands/SetDemandControl",
command_topic=f"{mqtt_prefix}commands/SetDemandControl",
retain=True,
name="Demand Control",
entity_category=EntityCategory.CONFIG,
native_unit_of_measurement="%",
Expand Down Expand Up @@ -782,8 +783,9 @@ def build_selects(mqtt_prefix: str) -> list[HeishaMonSelectEntityDescription]:
),
HeishaMonSelectEntityDescription(
heishamon_topic_id="SetSmartGridMode",
key=f"{mqtt_prefix}main/FakeSmartGridMode", # FIXME: find how to get real value
key=f"{mqtt_prefix}commands/SetSmartGridMode",
command_topic=f"{mqtt_prefix}commands/SetSmartGridMode",
retain=True,
name="Smart Grid Mode",
entity_category=EntityCategory.CONFIG,
state=read_smart_grid_mode,
Expand Down

0 comments on commit bf428ee

Please sign in to comment.