Skip to content

Commit

Permalink
[fix] device_class (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
flauteps authored Oct 5, 2024
1 parent 14d4a90 commit ee3b48a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/saj_esolar/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def add_years(d, years):
name="nowPower",
icon="mdi:solar-power",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
device_class=SensorDeviceClass.ENERGY,
),
SensorEntityDescription(
key="runningState",
Expand Down Expand Up @@ -275,14 +275,14 @@ def add_years(d, years):
name="peakPower",
icon="mdi:solar-panel",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
device_class=SensorDeviceClass.ENERGY,
),
SensorEntityDescription(
key="systemPower",
name="systemPower",
icon="mdi:solar-panel",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
device_class=SensorDeviceClass.ENERGY,
),
SensorEntityDescription(
key="pvElec",
Expand Down Expand Up @@ -370,7 +370,7 @@ def add_years(d, years):
name="totalLoadPower",
icon="mdi:solar-panel",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
device_class=SensorDeviceClass.ENERGY,
),
SensorEntityDescription(
key="totalPvgenPower",
Expand Down

0 comments on commit ee3b48a

Please sign in to comment.