From 0be8180f0b584c5af16e7223efe35a56bed7aedc Mon Sep 17 00:00:00 2001 From: gluap Date: Sun, 17 Jan 2021 16:00:58 +0100 Subject: [PATCH] config flow should correctly set device. --- custom_components/duofern/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/duofern/config_flow.py b/custom_components/duofern/config_flow.py index 64db917..fb00dc2 100644 --- a/custom_components/duofern/config_flow.py +++ b/custom_components/duofern/config_flow.py @@ -27,7 +27,7 @@ async def async_step_user(self, user_input=None): title='duofern', data=user_input ) if os.path.isdir("/dev/serial/by-id"): - serialdevs = set(os.listdir("/dev/serial/by-id/")) + serialdevs = set(f"/dev/serial/by-id/{d}" for d in set(os.listdir("/dev/serial/by-id/"))) else: serialdevs=["could not find /dev/serial/by-id/, did you plug in your dufoern stick correctly?"] return self.async_show_form(