Skip to content

Commit 3d11a33

Browse files
authored
Update sensor.py
Zeile 10, 11 & 12 gelöscht Zeile 10 neu eingefügt Zeile 49 geändert
1 parent 3db139e commit 3d11a33

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sensor.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
SensorDeviceClass,
88
SensorEntity,
99
)
10-
from homeassistant.const import (
11-
ELECTRIC_POTENTIAL_MILLIVOLT,
12-
)
10+
from homeassistant.const import UnitOfElectricPotential
1311
from homeassistant.core import HomeAssistant, callback
1412
from homeassistant.helpers.dispatcher import async_dispatcher_connect
1513
from homeassistant.helpers.entity_platform import AddEntitiesCallback
@@ -48,7 +46,7 @@ def __init__(
4846
"PH-803W ORP",
4947
"orp",
5048
"mdi:water-opacity",
51-
ELECTRIC_POTENTIAL_MILLIVOLT,
49+
UnitOfElectricPotential.MILLIVOLT,
5250
SensorDeviceClass.VOLTAGE,
5351
),
5452
]

0 commit comments

Comments
 (0)