mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Strip device names (#2303)
This commit is contained in:
parent
d9e20307de
commit
841520b75e
@ -116,7 +116,7 @@ class Hardware:
|
|||||||
dev_list: Set[str] = set()
|
dev_list: Set[str] = set()
|
||||||
for device in self.context.list_devices(subsystem="input"):
|
for device in self.context.list_devices(subsystem="input"):
|
||||||
if "NAME" in device.properties:
|
if "NAME" in device.properties:
|
||||||
dev_list.add(device.properties["NAME"].replace('"', ""))
|
dev_list.add(device.properties["NAME"].replace('"', "").strip())
|
||||||
|
|
||||||
return dev_list
|
return dev_list
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user