Skip to content

Commit

Permalink
πŸ› Correct mqtt channels for S0 sensors
Browse files Browse the repository at this point in the history
Change-Id: I27f32c0ebc09bd90754093aec412a5fb03a993d5
  • Loading branch information
kamaradclimber committed Oct 24, 2022
1 parent 3bca20f commit 17e568b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/aquarea/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def message_received(message):
if device_id not in self._known_s0_sensors:
description = HeishaMonSensorEntityDescription(
heishamon_topic_id=f"s0-{device_id}-watthour",
key="/".join([base, s0, "WattHour", device_id]),
key="/".join([base, s0, "Watthour", device_id]),
name=f"HeishaMon s0 {device_id} WattHour",
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.MEASUREMENT,
Expand All @@ -233,7 +233,7 @@ def message_received(message):
)
description = HeishaMonSensorEntityDescription(
heishamon_topic_id=f"s0-{device_id}-totalwatthour",
key="/".join([base, s0, "WattHourTotal", device_id]),
key="/".join([base, s0, "WatthourTotal", device_id]),
name=f"HeishaMon s0 {device_id} WattHourTotal",
device_class=SensorDeviceClass.ENERGY,
native_unit_of_measurement="Wh",
Expand Down

0 comments on commit 17e568b

Please sign in to comment.