Skip to content

Commit

Permalink
Merge pull request #25 from markvader/markvader-fix-battery-sensor2
Browse files Browse the repository at this point in the history
Update sensor.py re:battern sensor
  • Loading branch information
markvader authored Jul 28, 2023
2 parents 634793f + bde0458 commit 092158e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/sonic/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ class SonicBatterySensor(SonicEntity, SensorEntity):
"""Monitors the battery state for battery-powered devices or returns external_power_supply if externally powered."""

_attr_icon = BATTERY_ICON
_attr_native_unit_of_measurement = "battery"
_attr_state_class: SensorStateClass = SensorStateClass.None
# _attr_native_unit_of_measurement = "battery"
# _attr_state_class: SensorStateClass = SensorStateClass.None

def __init__(self, device):
"""Initialize the battery sensor."""
Expand Down

0 comments on commit 092158e

Please sign in to comment.