Skip to content

Commit

Permalink
switch CONFIG sensors to DIAGNOSTIC
Browse files Browse the repository at this point in the history
to comply with HA 2023.11 new rules. fix #22
  • Loading branch information
hekmon committed Nov 2, 2023
1 parent 8a5dcc0 commit 9a80aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/linkytic/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ async def async_setup_entry(
config_uniq_id=config_entry.entry_id,
serial_reader=serial_reader,
icon="mdi:cash-check",
category=EntityCategory.CONFIG,
category=EntityCategory.DIAGNOSTIC,
),
RegularIntSensor(
tag="ISOUSC",
name="Intensité souscrite",
config_title=config_entry.title,
config_uniq_id=config_entry.entry_id,
serial_reader=serial_reader,
category=EntityCategory.CONFIG,
category=EntityCategory.DIAGNOSTIC,
device_class=SensorDeviceClass.CURRENT,
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
),
Expand Down

0 comments on commit 9a80aa9

Please sign in to comment.