mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Use f-string instead of concatenation in Velux (#100353)
This commit is contained in:
committed by
GitHub
parent
840d881c25
commit
4a48a92cba
@@ -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):
|
||||
|
Reference in New Issue
Block a user