Fix xiaomi edl auth check

Signed-off-by: Dinolek <github@dinolek.me>
This commit is contained in:
Dinolek 2024-07-06 14:00:26 +02:00
parent 5367174021
commit 113b329991
No known key found for this signature in database
GPG key ID: 077B32AEC0CB2507

View file

@ -42,8 +42,6 @@ class xiaomi(metaclass=LogBase):
if rsp.resp:
rsp = self.fh.xmlsend(self.xiaomi_authdata)
if rsp.resp:
if "value" in rsp.resp:
if rsp.resp["value"] == "ACK":
if 'authenticated' in rsp.log[0].lower() and 'true' in rsp.log[0].lower():
return True
if 'authenticated' in rsp.log[0].lower():
return True
return False