Collection of code styling tweaks (#87381)

This commit is contained in:
Franck Nijhof 2023-02-04 18:52:26 +01:00 committed by GitHub
parent e55f11296e
commit 3d557b5583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 274 additions and 156 deletions

View file

@ -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()