Skip to content

Commit

Permalink
added support for mgw lan
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed May 23, 2024
1 parent 0578eae commit 6b03e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/eltako/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def validate_eltako_conf(self, user_input) -> bool:
gateway_selection: str = user_input[CONF_GATEWAY_DESCRIPTION]

for gdc in gateway.GatewayDeviceType:
if gdc in gateway_selection:
if gdc in gateway_selection and gdc in gateway.BAUD_RATE_DEVICE_TYPE_MAPPING:
baud_rate = gateway.BAUD_RATE_DEVICE_TYPE_MAPPING[gdc]
break

Expand Down

0 comments on commit 6b03e78

Please sign in to comment.