Don't create a switch for POE device if said device is Cloud key (#18117)
This commit is contained in:
parent
1f290bad94
commit
92c536ec0e
2 changed files with 26 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue