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