Use f-string instead of concatenation in Velux (#100353)

This commit is contained in:
Joost Lekkerkerker 2023-09-14 10:06:43 +02:00 committed by GitHub
parent 840d881c25
commit 4a48a92cba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ class VeluxEntity(Entity):
"""Initialize the Velux device."""
self.node = node
self._attr_unique_id = node.serial_number
self._attr_name = node.name if node.name else "#" + str(node.node_id)
self._attr_name = node.name if node.name else f"#{node.node_id}"
@callback
def async_register_callbacks(self):