Handle missing name in UniFi firewall policy (#180536)

This commit is contained in:
Robert Svensson
2026-08-28 20:09:24 +00:00
committed by Franck Nijhof
parent 04ee53cc5d
commit e31a22fc83
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -9,5 +9,5 @@
"iot_class": "local_push",
"loggers": ["aiounifi"],
"quality_scale": "silver",
"requirements": ["aiounifi==94"]
"requirements": ["aiounifi==95"]
}
+1 -1
View File
@@ -157,7 +157,7 @@ async def async_firewall_policy_control_fn(
def async_firewall_policy_supported_fn(hub: UnifiHub, obj_id: str) -> bool:
"""Check if firewall policy can be controlled."""
policy = hub.api.firewall_policies[obj_id]
return not policy.predefined
return not policy.predefined and policy.name != ""
async def async_object_oriented_network_config_control_fn(
+1 -1
View File
@@ -459,7 +459,7 @@ aiotedee==0.3.0
aiotractive==1.0.3
# homeassistant.components.unifi
aiounifi==94
aiounifi==95
# homeassistant.components.usb
aiousbwatcher==1.1.2