diff --git a/custom_components/duofern/config_flow.py b/custom_components/duofern/config_flow.py index b26f6bd..e70f4c4 100644 --- a/custom_components/duofern/config_flow.py +++ b/custom_components/duofern/config_flow.py @@ -37,9 +37,10 @@ async def async_step_user(self, user_input: Mapping[str, Any]|None =None) -> Flo if os.path.isdir("/dev/"): serialdevs.update(set(glob.glob("/dev/ttyU*"))) serialdevs.update(set(glob.glob("/dev/ttyA*"))) + serialdevs.update(set(glob.glob("/dev/duofernstick"))) if len(serialdevs) == 0: - serialdevs = set(["could not find /dev/serial/by-id/ or /dev/tty{U,A}*, did you plug in your duofern stick correctly?"]) + serialdevs = set(["could not find /dev/serial/by-id/, /dev/tty{U,A}* or /dev/duofernstick. Did you plug in your duofern stick correctly?"]) return self.async_show_form( step_id='user',