Fix for magnet sensor open state - when opened long time

This commit is contained in:
2017-03-06 20:55:30 +03:00
parent 54eda12502
commit 86d6db496a
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ class XiaomiHub:
for sock in read_sockets:
if sock == socket:
data = sock.recv(4096)
print("Not recieved data: " + str(data))
_LOGGER.error("Unwanted data recieved: " + str(data))
except Exception as e:
_LOGGER.error("Cannot read unwanted data: " + str(e))