mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix unique_id of derived sent-sensors (#58298)
This commit is contained in:
parent
a4fc808e49
commit
1548877e36
@ -84,7 +84,7 @@ DERIVED_SENSORS: tuple[UpnpSensorEntityDescription, ...] = (
|
|||||||
),
|
),
|
||||||
UpnpSensorEntityDescription(
|
UpnpSensorEntityDescription(
|
||||||
key=BYTES_SENT,
|
key=BYTES_SENT,
|
||||||
unique_id="KiB/sent",
|
unique_id="KiB/sec_sent",
|
||||||
name=f"{DATA_RATE_KIBIBYTES_PER_SECOND} sent",
|
name=f"{DATA_RATE_KIBIBYTES_PER_SECOND} sent",
|
||||||
icon="mdi:server-network",
|
icon="mdi:server-network",
|
||||||
native_unit_of_measurement=DATA_RATE_KIBIBYTES_PER_SECOND,
|
native_unit_of_measurement=DATA_RATE_KIBIBYTES_PER_SECOND,
|
||||||
@ -100,7 +100,7 @@ DERIVED_SENSORS: tuple[UpnpSensorEntityDescription, ...] = (
|
|||||||
),
|
),
|
||||||
UpnpSensorEntityDescription(
|
UpnpSensorEntityDescription(
|
||||||
key=PACKETS_SENT,
|
key=PACKETS_SENT,
|
||||||
unique_id="packets/sent",
|
unique_id="packets/sec_sent",
|
||||||
name=f"{DATA_RATE_PACKETS_PER_SECOND} sent",
|
name=f"{DATA_RATE_PACKETS_PER_SECOND} sent",
|
||||||
icon="mdi:server-network",
|
icon="mdi:server-network",
|
||||||
native_unit_of_measurement=DATA_RATE_PACKETS_PER_SECOND,
|
native_unit_of_measurement=DATA_RATE_PACKETS_PER_SECOND,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user