Skip to content

Commit

Permalink
Merge pull request #65 from andrew-codechimp/monetary-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
megakid authored Dec 17, 2024
2 parents e27eafd + 4b4ee88 commit 27a628e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/hildebrand_glow_ihd_mqtt/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"name": "Smart Meter Electricity: Import Unit Rate",
"device_class": SensorDeviceClass.MONETARY,
"unit_of_measurement": "GBP/kWh",
"state_class": SensorStateClass.MEASUREMENT,
"state_class": SensorStateClass.TOTAL,
"icon": "mdi:cash",
"func": lambda js: js["electricitymeter"]["energy"]["import"]["price"][
"unitrate"
Expand All @@ -149,7 +149,7 @@
"name": "Smart Meter Electricity: Import Standing Charge",
"device_class": SensorDeviceClass.MONETARY,
"unit_of_measurement": "GBP",
"state_class": SensorStateClass.MEASUREMENT,
"state_class": SensorStateClass.TOTAL,
"icon": "mdi:cash",
"func": lambda js: js["electricitymeter"]["energy"]["import"]["price"][
"standingcharge"
Expand Down Expand Up @@ -253,7 +253,7 @@
"name": "Smart Meter Gas: Import Unit Rate",
"device_class": SensorDeviceClass.MONETARY,
"unit_of_measurement": "GBP/kWh",
"state_class": SensorStateClass.MEASUREMENT,
"state_class": SensorStateClass.TOTAL,
"icon": "mdi:cash",
"func": lambda js: js["gasmeter"]["energy"]["import"]["price"]["unitrate"],
"ignore_zero_values": True,
Expand All @@ -262,7 +262,7 @@
"name": "Smart Meter Gas: Import Standing Charge",
"device_class": SensorDeviceClass.MONETARY,
"unit_of_measurement": "GBP",
"state_class": SensorStateClass.MEASUREMENT,
"state_class": SensorStateClass.TOTAL,
"icon": "mdi:cash",
"func": lambda js: js["gasmeter"]["energy"]["import"]["price"][
"standingcharge"
Expand Down

0 comments on commit 27a628e

Please sign in to comment.