allow to send commands to gateway
This commit is contained in:
+2
-1
@@ -128,6 +128,7 @@ class XiaomiHub:
|
||||
def _send_socket(self, cmd, rtnCmd, ip, port):
|
||||
socket = self._socket
|
||||
try:
|
||||
_LOGGER.info('Sending to GW {0}'.format(cmd))
|
||||
self._read_unwanted_data()
|
||||
|
||||
socket.settimeout(30.0)
|
||||
@@ -264,4 +265,4 @@ class XiaomiDevice():
|
||||
return True
|
||||
|
||||
def parse_data(self, data):
|
||||
return True
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user