Fix unique_id of derived sent-sensors (#58298)

pull/58994/head
kodsnutten 2021-11-03 10:21:54 +01:00 committed by Franck Nijhof
parent e43cb82f29
commit ae99b678dd
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ DERIVED_SENSORS: tuple[UpnpSensorEntityDescription, ...] = (
),
UpnpSensorEntityDescription(
key=BYTES_SENT,
unique_id="KiB/sent",
unique_id="KiB/sec_sent",
name=f"{DATA_RATE_KIBIBYTES_PER_SECOND} sent",
icon="mdi:server-network",
native_unit_of_measurement=DATA_RATE_KIBIBYTES_PER_SECOND,
@ -100,7 +100,7 @@ DERIVED_SENSORS: tuple[UpnpSensorEntityDescription, ...] = (
),
UpnpSensorEntityDescription(
key=PACKETS_SENT,
unique_id="packets/sent",
unique_id="packets/sec_sent",
name=f"{DATA_RATE_PACKETS_PER_SECOND} sent",
icon="mdi:server-network",
native_unit_of_measurement=DATA_RATE_PACKETS_PER_SECOND,