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:
Robert Svensson 2020-04-21 21:13:19 +02:00 committed by GitHub
parent e004cd029a
commit 867138ebb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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