mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 23:41:48 -05:00
Handle missing name in UniFi firewall policy (#180536)
This commit is contained in:
@@ -9,5 +9,5 @@
|
||||
"iot_class": "local_push",
|
||||
"loggers": ["aiounifi"],
|
||||
"quality_scale": "silver",
|
||||
"requirements": ["aiounifi==94"]
|
||||
"requirements": ["aiounifi==95"]
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Generated
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user