日志显示:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/__init__.py", line 176, in async_setup_platform
platform.get_scanner, hass, {DOMAIN: p_config})
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/mikrotik.py", line 38, in get_scanner
scanner = MikrotikScanner(config[DOMAIN])
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/mikrotik.py", line 70, in __init__
self._update_info()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/mikrotik.py", line 184, in _update_info
cmd='/caps-man/registration-table/getall')
File "/config/deps/lib/python3.6/site-packages/librouteros/api.py", line 80, in __call__
return self._readResponse()
File "/config/deps/lib/python3.6/site-packages/librouteros/api.py", line 103, in _readResponse
reply_word, words = self._readSentence()
File "/config/deps/lib/python3.6/site-packages/librouteros/api.py", line 88, in _readSentence
reply_word, words = self.protocol.readSentence()
File "/config/deps/lib/python3.6/site-packages/librouteros/connections.py", line 147, in readSentence
sentence = tuple(word for word in iter(self.readWord, b'\x00'))
File "/config/deps/lib/python3.6/site-packages/librouteros/connections.py", line 147, in
sentence = tuple(word for word in iter(self.readWord, b'\x00'))
File "/config/deps/lib/python3.6/site-packages/librouteros/connections.py", line 164, in readWord
return self.transport.read(length).decode(encoding=self.encoding, errors='strict')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 11: invalid start byte