mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-11-02 18:28: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):
|
||||
try:
|
||||
_, port = msg.topic.split('/')
|
||||
d = msg.topic.split('/')
|
||||
port = d[-1]
|
||||
except ValueError:
|
||||
self.lg.warning('can not process %s', msg)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user