8000 known_devices.yaml not updated with Mikrotik Hex V3 and an external access point. · Issue #7604 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
known_devices.yaml not updated with Mikrotik Hex V3 and an external access point. #7604
Closed
@Esiravegna

Description

@Esiravegna

If you use a router without wireless, the mikrotik component will return an empty last_results devices list.

Home Assistant release (hass --version):
0.44.2

Python release (python3 --version):
3.4

Component/platform:
Mikrotik

Description of problem:

This line is to blame. Should you to be using a router/access point configuration, this would be empty.

Expected:

Personally, I changed the line to device_names instead wireless_clients:

            self.last_results = {
                device.get('mac-address'):
                    mac_names.get(device.get('mac-address'))
                for device in device_names
            }

Problem-relevant configuration.yaml entries and steps to reproduce:

- platform: mikrotik
   username: you_wish
   password: same
   host: some_ip

Additional info:

I'm quite sure that there's a better way to to this, however I'm not familiar enough with the platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0