mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Fix device class repairs issues UOM placeholders in Group (#109294)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user