Skip to content

Commit

Permalink
config flow should correctly set device.
Browse files Browse the repository at this point in the history
  • Loading branch information
gluap committed Jan 17, 2021
1 parent 932027f commit 0be8180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/duofern/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0be8180

Please sign in to comment.