Skip to content

Commit

Permalink
fix: fix device class for power source sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
jason0x43 committed Jan 5, 2024
1 parent 40662bc commit 9927937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hubitat/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __init__(self, **kwargs: Unpack[HubitatEntityArgs]):
"""Initialize a power source sensor."""
super().__init__(
attribute=DeviceAttribute.POWER_SOURCE,
device_class=SensorDeviceClass.POWER,
device_class=SensorDeviceClass.ENUM,
**kwargs,
)

Expand Down

0 comments on commit 9927937

Please sign in to comment.