Skip to content

Commit

Permalink
Use kWh unit for ExportTariff (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Jun 27, 2024
1 parent abe5377 commit 8f21c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions hatasmota/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
SENSOR_ECO2: Final = "eCO2"
SENSOR_ENERGY_EXPORT_ACTIVE: Final = "ExportActive"
SENSOR_ENERGY_EXPORT_REACTIVE: Final = "ExportReactive"
SENSOR_ENERGY_EXPORT_TARIFF: Final = "ExportTariff"
SENSOR_ENERGY_IMPORT_ACTIVE: Final = "ImportActive"
SENSOR_ENERGY_IMPORT_REACTIVE: Final = "ImportReactive"
SENSOR_ENERGY_IMPORT_TODAY: Final = "Today"
Expand Down
2 changes: 2 additions & 0 deletions hatasmota/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
SENSOR_ENERGY,
SENSOR_ENERGY_EXPORT_ACTIVE,
SENSOR_ENERGY_EXPORT_REACTIVE,
SENSOR_ENERGY_EXPORT_TARIFF,
SENSOR_ENERGY_IMPORT_ACTIVE,
SENSOR_ENERGY_IMPORT_REACTIVE,
SENSOR_ENERGY_IMPORT_TODAY,
Expand Down Expand Up @@ -170,6 +171,7 @@
SENSOR_ENERGY: ENERGY_KILO_WATT_HOUR,
SENSOR_ENERGY_EXPORT_ACTIVE: ENERGY_KILO_WATT_HOUR,
SENSOR_ENERGY_EXPORT_REACTIVE: REACTIVE_ENERGY_KILO_VOLT_AMPERE_HOUR,
SENSOR_ENERGY_EXPORT_TARIFF: ENERGY_KILO_WATT_HOUR,
SENSOR_ENERGY_IMPORT_ACTIVE: ENERGY_KILO_WATT_HOUR,
SENSOR_ENERGY_IMPORT_REACTIVE: REACTIVE_ENERGY_KILO_VOLT_AMPERE_HOUR,
SENSOR_ENERGY_IMPORT_TODAY: ENERGY_KILO_WATT_HOUR,
Expand Down

0 comments on commit 8f21c76

Please sign in to comment.