Skip to content

Commit

Permalink
close connection on connection retry, bump onvif lib (#55363)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterjm authored and balloob committed Aug 28, 2021
1 parent bde4c0e commit c1bce68
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/onvif/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ async def async_setup(self) -> bool:
err,
)
self.available = False
await self.device.close()
except Fault as err:
LOGGER.error(
"Couldn't connect to camera '%s', please verify "
Expand Down
6 changes: 1 addition & 5 deletions homeassistant/components/onvif/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"domain": "onvif",
"name": "ONVIF",
"documentation": "https://www.home-assistant.io/integrations/onvif",
"requirements": [
"onvif-zeep-async==1.0.0",
"WSDiscovery==2.0.0",
"zeep[async]==4.0.0"
],
"requirements": ["onvif-zeep-async==1.2.0", "WSDiscovery==2.0.0"],
"dependencies": ["ffmpeg"],
"codeowners": ["@hunterjm"],
"config_flow": true,
Expand Down
5 changes: 1 addition & 4 deletions requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ ondilo==0.2.0
onkyo-eiscp==1.2.7

# homeassistant.components.onvif
onvif-zeep-async==1.0.0
onvif-zeep-async==1.2.0

# homeassistant.components.opengarage
open-garage==0.1.5
Expand Down Expand Up @@ -2449,9 +2449,6 @@ youless-api==0.12
# homeassistant.components.media_extractor
youtube_dl==2021.04.26

# homeassistant.components.onvif
zeep[async]==4.0.0

# homeassistant.components.zengge
zengge==0.2

Expand Down
5 changes: 1 addition & 4 deletions requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ omnilogic==0.4.5
ondilo==0.2.0

# homeassistant.components.onvif
onvif-zeep-async==1.0.0
onvif-zeep-async==1.2.0

# homeassistant.components.openerz
openerz-api==0.1.0
Expand Down Expand Up @@ -1372,9 +1372,6 @@ yeelight==0.7.4
# homeassistant.components.youless
youless-api==0.12

# homeassistant.components.onvif
zeep[async]==4.0.0

# homeassistant.components.zeroconf
zeroconf==0.36.0

Expand Down

0 comments on commit c1bce68

Please sign in to comment.