Fix device class repairs issues UOM placeholders in Group (#109294)
This commit is contained in:
parent
459022d030
commit
6869723003
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue