File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
custom_components/solaredge_modbus_multi Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 44
55from homeassistant .components .number import NumberEntity
66from homeassistant .config_entries import ConfigEntry
7- from homeassistant .const import PERCENTAGE , TIME_SECONDS , UnitOfEnergy , UnitOfPower
7+ from homeassistant .const import PERCENTAGE , UnitOfEnergy , UnitOfPower , UnitOfTime
88from homeassistant .core import HomeAssistant , callback
99from homeassistant .helpers .entity import EntityCategory
1010from homeassistant .helpers .entity_platform import AddEntitiesCallback
@@ -235,7 +235,7 @@ async def async_set_native_value(self, value: float) -> None:
235235class StorageCommandTimeout (SolarEdgeNumberBase ):
236236 native_min_value = 0
237237 native_max_value = 86400 # 24h
238- native_unit_of_measurement = TIME_SECONDS
238+ native_unit_of_measurement = UnitOfTime . SECONDS
239239 icon = "mdi:clock-end"
240240
241241 def __init__ (self , inverter , config_entry , coordinator ):
You can’t perform that action at this time.
0 commit comments