mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 00:54:28 +05:00
fix mid
This commit is contained in:
@@ -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