Bump dependency to v31 which makes has_relay more robust (#65180)

pull/63818/head
Robert Svensson 2022-01-29 14:34:14 +01:00 committed by GitHub
parent 98aa69fdaf
commit c25431750e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/unifi",
"requirements": [
"aiounifi==30"
"aiounifi==31"
],
"codeowners": [
"@Kane610"

View File

@ -205,6 +205,7 @@ def add_outlet_entities(controller, async_add_entities, devices):
or not (device := controller.api.devices[mac]).outlet_table
):
continue
for outlet in device.outlets.values():
if outlet.has_relay:
switches.append(UniFiOutletSwitch(device, controller, outlet.index))

View File

@ -269,7 +269,7 @@ aiosyncthing==0.5.1
aiotractive==0.5.2
# homeassistant.components.unifi
aiounifi==30
aiounifi==31
# homeassistant.components.vlc_telnet
aiovlc==0.1.0

View File

@ -204,7 +204,7 @@ aiosyncthing==0.5.1
aiotractive==0.5.2
# homeassistant.components.unifi
aiounifi==30
aiounifi==31
# homeassistant.components.vlc_telnet
aiovlc==0.1.0