Skip to content

Commit

Permalink
Bump vivintpy to 2022.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
natekspencer committed Jan 18, 2022
1 parent 4a163c0 commit 75dbd02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
14 changes: 2 additions & 12 deletions custom_components/vivint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,7 @@ def async_on_device_event(event_type: str, viv_device: VivintDevice) -> None:
)
)

for platform in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, platform)
)
hass.config_entries.async_setup_platforms(entry, PLATFORMS)

# Check for devices that no longer exist and remove them
stored_devices = device_registry.async_entries_for_config_entry(
Expand Down Expand Up @@ -157,14 +154,7 @@ def async_on_device_event(event_type: str, viv_device: VivintDevice) -> None:

async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry):
"""Unload config entry."""
unload_ok = all(
await asyncio.gather(
*[
hass.config_entries.async_forward_entry_unload(entry, platform)
for platform in PLATFORMS
]
)
)
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)

hub: VivintHub = hass.data[DOMAIN][entry.entry_id]
await hub.disconnect()
Expand Down
4 changes: 2 additions & 2 deletions custom_components/vivint/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"domain": "vivint",
"name": "Vivint",
"version": "2021.12.0",
"version": "2022.1.0",
"config_flow": true,
"documentation": "https://github.com/natekspencer/hacs-vivint",
"issue_tracker": "https://github.com/natekspencer/hacs-vivint/issues",
"requirements": [
"vivintpy==2021.12.0"
"vivintpy==2022.1.0"
],
"dependencies": [
"ffmpeg"
Expand Down

0 comments on commit 75dbd02

Please sign in to comment.