Collection of code styling tweaks (#87381)
This commit is contained in:
parent
e55f11296e
commit
3d557b5583
52 changed files with 274 additions and 156 deletions
|
@ -364,7 +364,10 @@ class QswSensor(QswSensorEntity, SensorEntity):
|
|||
super().__init__(coordinator, entry, type_id)
|
||||
|
||||
self._attr_name = f"{self.product} {description.name}"
|
||||
self._attr_unique_id = f"{entry.unique_id}_{description.key}{description.sep_key}{description.subkey}"
|
||||
self._attr_unique_id = (
|
||||
f"{entry.unique_id}_{description.key}"
|
||||
f"{description.sep_key}{description.subkey}"
|
||||
)
|
||||
self.entity_description = description
|
||||
self._async_update_attrs()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue