Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions homeassistant/components/solaredge_local/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

from homeassistant.components.sensor import (
PLATFORM_SCHEMA,
SensorDeviceClass,
SensorEntity,
SensorEntityDescription,
)
from homeassistant.const import (
CONF_IP_ADDRESS,
CONF_NAME,
DEVICE_CLASS_TEMPERATURE,
ELECTRIC_CURRENT_AMPERE,
ELECTRIC_POTENTIAL_VOLT,
ENERGY_WATT_HOUR,
Expand Down Expand Up @@ -129,7 +129,7 @@ class SolarEdgeLocalSensorEntityDescription(SensorEntityDescription):
name="Average Optimizer Temperature",
native_unit_of_measurement=TEMP_CELSIUS,
icon="mdi:solar-panel",
device_class=DEVICE_CLASS_TEMPERATURE,
device_class=SensorDeviceClass.TEMPERATURE,
),
SolarEdgeLocalSensorEntityDescription(
key="optimizervoltage",
Expand All @@ -144,7 +144,7 @@ class SolarEdgeLocalSensorEntityDescription(SensorEntityDescription):
name="Inverter Temperature",
native_unit_of_measurement=TEMP_CELSIUS,
extra_attribute="operating_mode",
device_class=DEVICE_CLASS_TEMPERATURE,
device_class=SensorDeviceClass.TEMPERATURE,
)

SENSOR_TYPES_ENERGY_IMPORT: tuple[SolarEdgeLocalSensorEntityDescription, ...] = (
Expand Down