Skip to content

Commit

Permalink
Update const.py
Browse files Browse the repository at this point in the history
Workaround HA 2023.2.1 sensor class warning issue
  • Loading branch information
cnstudio authored Feb 6, 2023
1 parent bf5caef commit 6a8f637
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/taipower_bimonthly_cost/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ class TaiPowerCostSensorDescription(
name="Price Per kWh",
native_unit_of_measurement=UNIT_KWH_COST,
device_class=SensorDeviceClass.MONETARY,
state_class=SensorStateClass.MEASUREMENT,
#state_class=SensorStateClass.MEASUREMENT,
#Try to workaround HA 2023.2.1 sensor class warning issue
),
TaiPowerCostSensorDescription(
key="power_cost",
name="Power Cost",
native_unit_of_measurement=UNIT_TWD,
device_class=SensorDeviceClass.MONETARY,
state_class=SensorStateClass.MEASUREMENT,
#state_class=SensorStateClass.MEASUREMENT,
#Try to workaround HA 2023.2.1 sensor class warning issue
)
)

0 comments on commit 6a8f637

Please sign in to comment.