mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Fix device class repairs issues UOM placeholders in Group (#109294)
This commit is contained in:
parent
459022d030
commit
6869723003
@ -559,7 +559,7 @@ class SensorGroup(GroupEntity, SensorEntity):
|
|||||||
"entity_id": self.entity_id,
|
"entity_id": self.entity_id,
|
||||||
"device_class": device_class,
|
"device_class": device_class,
|
||||||
"source_entities": ", ".join(self._entity_ids),
|
"source_entities": ", ".join(self._entity_ids),
|
||||||
"uoms:": ", ".join(unit_of_measurements),
|
"uoms": ", ".join(unit_of_measurements),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
@ -574,7 +574,7 @@ class SensorGroup(GroupEntity, SensorEntity):
|
|||||||
translation_placeholders={
|
translation_placeholders={
|
||||||
"entity_id": self.entity_id,
|
"entity_id": self.entity_id,
|
||||||
"source_entities": ", ".join(self._entity_ids),
|
"source_entities": ", ".join(self._entity_ids),
|
||||||
"uoms:": ", ".join(unit_of_measurements),
|
"uoms": ", ".join(unit_of_measurements),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user