forked from home-assistant/core
UniFi - Only match ssid filter if ssid is present, this will only affect recently disconnected clients and clients which have a previously created entry in entity registry (#34509)
This commit is contained in:
@@ -106,7 +106,8 @@ def add_entities(controller, async_add_entities):
|
||||
continue
|
||||
else:
|
||||
if (
|
||||
controller.option_ssid_filter
|
||||
item.essid
|
||||
and controller.option_ssid_filter
|
||||
and item.essid not in controller.option_ssid_filter
|
||||
):
|
||||
continue
|
||||
|
Reference in New Issue
Block a user