Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyroberts committed Jul 29, 2024
2 parents df83716 + 13102b8 commit a5851b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/wundasmart/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ class WundaSensorDescription(SensorEntityDescription):
name="Battery Level",
icon=lambda x: icon_for_battery_level(_number_or_none(x)),
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.HUMIDITY,
device_class=SensorDeviceClass.BATTERY,
state_class=SensorStateClass.MEASUREMENT,
),
WundaSensorDescription(
key="sig",
name="Signal Level",
icon=lambda x: icon_for_signal_level(_number_or_none(x)),
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.HUMIDITY,
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
state_class=SensorStateClass.MEASUREMENT,
)
]
Expand All @@ -96,15 +96,15 @@ class WundaSensorDescription(SensorEntityDescription):
name="Battery Level",
icon=lambda x: icon_for_battery_level(_number_or_none(x)),
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.HUMIDITY,
device_class=SensorDeviceClass.BATTERY,
state_class=SensorStateClass.MEASUREMENT,
),
WundaSensorDescription(
key="sig",
name="Signal Level",
icon=lambda x: icon_for_signal_level(_number_or_none(x)),
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.HUMIDITY,
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
state_class=SensorStateClass.MEASUREMENT,
),
WundaSensorDescription(
Expand Down

0 comments on commit a5851b9

Please sign in to comment.