mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Use f-string instead of concatenation in Velux (#100353)
This commit is contained in:
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user