Don't create a switch for POE device if said device is Cloud key (#18117)

This commit is contained in:
Robert Svensson 2018-11-02 21:09:16 +01:00 committed by Paulus Schoutsen
parent 1f290bad94
commit 92c536ec0e
2 changed files with 26 additions and 1 deletions

View file

@ -129,7 +129,8 @@ async def async_update_items(controller, async_add_entities,
# Network device with active POE
if not client.is_wired or client.sw_mac not in devices or \
not devices[client.sw_mac].ports[client.sw_port].port_poe or \
not devices[client.sw_mac].ports[client.sw_port].poe_enable:
not devices[client.sw_mac].ports[client.sw_port].poe_enable or \
controller.mac == client.mac:
continue
# Multiple POE-devices on same port means non UniFi POE driven switch