Skip to content

Commit

Permalink
Bump aiounifi to v44 (#86381)
Browse files Browse the repository at this point in the history
fixes undefined
  • Loading branch information
Kane610 authored Jan 22, 2023
1 parent 52ea64d commit 7729a5c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/unifi/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,12 @@ async def get_unifi_controller(
config: MappingProxyType[str, Any],
) -> aiounifi.Controller:
"""Create a controller object and verify authentication."""
sslcontext = None
ssl_context = False

if verify_ssl := bool(config.get(CONF_VERIFY_SSL)):
session = aiohttp_client.async_get_clientsession(hass)
if isinstance(verify_ssl, str):
sslcontext = ssl.create_default_context(cafile=verify_ssl)
ssl_context = ssl.create_default_context(cafile=verify_ssl)
else:
session = aiohttp_client.async_create_clientsession(
hass, verify_ssl=verify_ssl, cookie_jar=CookieJar(unsafe=True)
Expand All @@ -502,7 +502,7 @@ async def get_unifi_controller(
port=config[CONF_PORT],
site=config[CONF_SITE_ID],
websession=session,
sslcontext=sslcontext,
ssl_context=ssl_context,
)

try:
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/unifi/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
WIRELESS_CONNECTION = (
EventKey.WIRELESS_CLIENT_CONNECTED,
EventKey.WIRELESS_CLIENT_ROAM,
EventKey.WIRELESS_CLIENT_ROAMRADIO,
EventKey.WIRELESS_CLIENT_ROAM_RADIO,
EventKey.WIRELESS_GUEST_CONNECTED,
EventKey.WIRELESS_GUEST_ROAM,
EventKey.WIRELESS_GUEST_ROAMRADIO,
EventKey.WIRELESS_GUEST_ROAM_RADIO,
)


Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/unifi/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "UniFi Network",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/unifi",
"requirements": ["aiounifi==43"],
"requirements": ["aiounifi==44"],
"codeowners": ["@Kane610"],
"quality_scale": "platinum",
"ssdp": [
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ aiosyncthing==0.5.1
aiotractive==0.5.5

# homeassistant.components.unifi
aiounifi==43
aiounifi==44

# homeassistant.components.vlc_telnet
aiovlc==0.1.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ aiosyncthing==0.5.1
aiotractive==0.5.5

# homeassistant.components.unifi
aiounifi==43
aiounifi==44

# homeassistant.components.vlc_telnet
aiovlc==0.1.0
Expand Down

0 comments on commit 7729a5c

Please sign in to comment.