Skip to content

Commit

Permalink
Fix support Aqara Hub E1 in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Dec 28, 2023
1 parent 2cd04ea commit a087c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_gateway3/core/shell/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def login(self) -> Union[TelnetShell, ShellMGW, ShellE1, ShellMGW2]:

if b"rlxlinux" in resp:
shell = ShellMGW(self.reader, self.writer)
elif b"Aqara-Hub-E1" in resp:
elif b"Aqara-Hub-E1" in resp or b"Aqara_Hub_E1" in resp:
shell = ShellE1(self.reader, self.writer)
elif b"Mijia_Hub_V2" in resp:
shell = ShellMGW2(self.reader, self.writer)
Expand Down

0 comments on commit a087c31

Please sign in to comment.