Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MikroTik 0.92.0b1 not loading (AttributeError) #23203

Closed
tjorim opened this issue Apr 18, 2019 · 0 comments · Fixed by #23204
Closed

MikroTik 0.92.0b1 not loading (AttributeError) #23203

tjorim opened this issue Apr 18, 2019 · 0 comments · Fixed by #23204
Assignees

Comments

@tjorim
Copy link
Contributor

tjorim commented Apr 18, 2019

Home Assistant release with the issue:
0.92.0b1

Last working Home Assistant release (if known):
0.91.4

Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io on generic Linux

Component/platform:
https://rc.home-assistant.io/components/mikrotik/

Description of problem:
MikroTik device tracker does not load: 'MikrotikScanner' object has no attribute 'encoding'. It should not be needed because of the default value. Related to #22715.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

device_tracker:
  - platform: mikrotik
    host: !secret mikrotik_host
    username: !secret routeros_username
    password: !secret routeros_password

Traceback (if applicable):

Error setting up platform mikrotik

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/__init__.py", line 170, in async_setup_platform
    platform.get_scanner, hass, {DOMAIN: p_config})
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/mikrotik/device_tracker.py", line 35, in get_scanner
    scanner = MikrotikScanner(config[DOMAIN])
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/mikrotik/device_tracker.py", line 63, in __init__
    self.success_init = self.connect_to_device()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/mikrotik/device_tracker.py", line 78, in connect_to_device
    'encoding': self.encoding
AttributeError: 'MikrotikScanner' object has no attribute 'encoding'

Additional information:
I tried to add encoding: utf-8 to my config as well.
The new option for mikrotik is missing from the docs anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants