Skip to content

Commit

Permalink
Merge pull request #10 from jsleroy/pr/fix-last-day-power-sensor
Browse files Browse the repository at this point in the history
fix last day power sensor class
  • Loading branch information
hekmon authored Jun 7, 2023
2 parents fce022e + ecd13af commit 2aa843a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/linkytic/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ async def async_setup_entry(
config_title=config_entry.title,
config_uniq_id=config_entry.entry_id,
serial_reader=serial_reader,
device_class=SensorDeviceClass.CURRENT,
device_class=SensorDeviceClass.POWER,
native_unit_of_measurement=UnitOfPower.WATT, # documentation says unit is Watt but description talks about VoltAmp :/
)
)
Expand Down

0 comments on commit 2aa843a

Please sign in to comment.