mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-11-03 00:08:44 +05:00
fix mid
This commit is contained in:
1 parent
e0b4fec0ca
commit
4e2d659c44
1 file changed
+2
-1
@@ -195,7 +195,8 @@ class MegaD:
|
|||||||
|
|
||||||
def _process_msg(self, msg):
|
def _process_msg(self, msg):
|
||||||
try:
|
try:
|
||||||
_, port = msg.topic.split('/')
|
d = msg.topic.split('/')
|
||||||
|
port = d[-1]
|
||||||
except ValueError:
|
except ValueError:
|
||||||
self.lg.warning('can not process %s', msg)
|
self.lg.warning('can not process %s', msg)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in new issue
Block a user