mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Remove the unnecessary prefix from the sensor names in the Shelly integration (#40097)
This commit is contained in:
parent
4fbd4957bd
commit
56ba4907e1
@ -42,11 +42,11 @@ async def async_setup_entry_attribute_entities(
|
|||||||
if not blocks:
|
if not blocks:
|
||||||
return
|
return
|
||||||
|
|
||||||
counts = Counter([item[0].type for item in blocks])
|
counts = Counter([item[1] for item in blocks])
|
||||||
|
|
||||||
async_add_entities(
|
async_add_entities(
|
||||||
[
|
[
|
||||||
sensor_class(wrapper, block, sensor_id, description, counts[block.type])
|
sensor_class(wrapper, block, sensor_id, description, counts[sensor_id])
|
||||||
for block, sensor_id, description in blocks
|
for block, sensor_id, description in blocks
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user