Logger: homeassistant.config_entries
Source: components/mikrotik/hub.py:258
First occurred: 下午1:55:25 (1 occurrences)
Last logged: 下午1:55:25
Error setting up entry Mikrotik for mikrotik
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 249, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/mikrotik/__init__.py", line 68, in async_setup_entry
if not await hub.async_setup():
File "/usr/src/homeassistant/homeassistant/components/mikrotik/hub.py", line 386, in async_setup
await self.hass.async_add_executor_job(self._mk_data.update)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/mikrotik/hub.py", line 282, in update
self.update_devices()
File "/usr/src/homeassistant/homeassistant/components/mikrotik/hub.py", line 177, in update_devices
self.all_devices = self.get_list_from_interface(DHCP)
File "/usr/src/homeassistant/homeassistant/components/mikrotik/hub.py", line 164, in get_list_from_interface
result = self.command(MIKROTIK_SERVICES[interface])
File "/usr/src/homeassistant/homeassistant/components/mikrotik/hub.py", line 258, in command
response = list(self.api(cmd=cmd))
File "/usr/local/lib/python3.8/site-packages/librouteros/api.py", line 28, in __call__
yield from self.readResponse()
File "/usr/local/lib/python3.8/site-packages/librouteros/api.py", line 60, in readResponse
reply_word, words = self.readSentence()
File "/usr/local/lib/python3.8/site-packages/librouteros/api.py", line 46, in readSentence
reply_word, words = self.protocol.readSentence()
File "/usr/local/lib/python3.8/site-packages/librouteros/protocol.py", line 189, in readSentence
sentence = tuple(word for word in iter(self.readWord, ''))
File "/usr/local/lib/python3.8/site-packages/librouteros/protocol.py", line 189, in <genexpr>
sentence = tuple(word for word in iter(self.readWord, ''))
File "/usr/local/lib/python3.8/site-packages/librouteros/protocol.py", line 206, in readWord
return word.decode(encoding=self.encoding, errors='strict')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 11: invalid start byte