Skip to content

Commit

Permalink
Fix deprecated const (#319)
Browse files Browse the repository at this point in the history
* Fix deprecated const

* Fix linting
  • Loading branch information
drc38 authored Jan 5, 2024
1 parent 700401b commit 34e9ed2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/dius/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from homeassistant.components.sensor import SensorEntity
from homeassistant.components.sensor import SensorEntityDescription
from homeassistant.components.sensor import SensorStateClass
from homeassistant.const import POWER_WATT
from homeassistant.const import UnitOfPower

from .const import DOMAIN
from .const import MAIN_ICON
Expand All @@ -19,6 +19,8 @@
from .enums import Msg_keys
from .enums import Msg_values

POWER_WATT = UnitOfPower.WATT


@dataclass
class DiusSensorDescription(SensorEntityDescription):
Expand Down

0 comments on commit 34e9ed2

Please sign in to comment.