Skip to content

Commit fba9b37

Browse files
author
niceboy
committed
Check port 23 of the gateway of zeroconf discoveried
1 parent bfe877e commit fba9b37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

custom_components/aqara_gateway/config_flow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ async def async_step_zeroconf(self, discovery_info: DiscoveryInfoType):
220220
if model not in SUPPORTED_MODELS:
221221
return self.async_abort(reason="connection_error")
222222

223+
if not self._check_port(23):
224+
return self.async_abort(reason="connection_error")
225+
226+
223227
if (fwcloud == "miot" and
224228
discovery_info.get('type') == '_aqara-setup._tcp.local.'):
225229
return await self.async_step_user()

0 commit comments

Comments
 (0)