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

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

No files matched your search

+2 -1
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