Skip to content

Commit ac60708

Browse files
authored
Merge pull request #24 from MrDonut79/patch-1
Update sensor.py
2 parents 3db139e + 3d11a33 commit ac60708

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)