Closed
Description
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
Labels
No labels