Skip to content

Commit

Permalink
Sort some sensor related stuff (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Jun 27, 2024
1 parent b36c590 commit ff00de2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hatasmota/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
SENSOR_DEWPOINT: Final = "DewPoint"
SENSOR_DISTANCE: Final = "Distance"
SENSOR_ECO2: Final = "eCO2"
SENSOR_ENERGY: Final = "Energy"
SENSOR_ENERGY_OTHER: Final = "Energy_other"
SENSOR_ENERGY: Final = "Energy"
SENSOR_FREQUENCY: Final = "Frequency"
SENSOR_HUMIDITY: Final = "Humidity"
SENSOR_ILLUMINANCE: Final = "Illuminance"
Expand Down Expand Up @@ -159,12 +159,12 @@
SENSOR_TEMPERATURE: Final = "Temperature"
SENSOR_TODAY: Final = "Today"
SENSOR_TOTAL_START_TIME: Final = "TotalStartTime"
SENSOR_TOTAL_TARIFF: Final = "TotalTariff"
SENSOR_TOTAL: Final = "Total"
SENSOR_TVOC: Final = "TVOC"
SENSOR_VOLTAGE: Final = "Voltage"
SENSOR_WEIGHT: Final = "Weight"
SENSOR_YESTERDAY: Final = "Yesterday"
SENSOR_TOTAL_TARIFF: Final = "TotalTariff"

SENSOR_STATUS_BATTERY_PERCENTAGE: Final = "status_battery_percentage"

Expand Down
2 changes: 1 addition & 1 deletion hatasmota/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@
SENSOR_REACTIVE_POWERUSAGE: REACTIVE_POWER,
SENSOR_TODAY: ENERGY_KILO_WATT_HOUR,
SENSOR_TOTAL_START_TIME: None,
SENSOR_TOTAL_TARIFF: ENERGY_KILO_WATT_HOUR,
SENSOR_TOTAL: ENERGY_KILO_WATT_HOUR,
SENSOR_TVOC: CONCENTRATION_PARTS_PER_BILLION,
SENSOR_VOLTAGE: VOLT,
SENSOR_WEIGHT: MASS_KILOGRAMS,
SENSOR_YESTERDAY: ENERGY_KILO_WATT_HOUR,
SENSOR_TOTAL_TARIFF: ENERGY_KILO_WATT_HOUR,
}

SUPPORTED_PRESSURE_UNITS = [PRESSURE_HPA, PRESSURE_MMHG]
Expand Down

0 comments on commit ff00de2

Please sign in to comment.