From df09bb63e0b78cbf0c2b99a449a72b5a6f7e3966 Mon Sep 17 00:00:00 2001 From: Seb Ruiz Date: Thu, 9 Feb 2023 22:07:36 +1100 Subject: [PATCH 1/2] Replaces deprecated async_setup_platforms with async_forward_entry_setups Fixes #169 --- custom_components/bhyve/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/bhyve/__init__.py b/custom_components/bhyve/__init__.py index 9c10c92..711ca26 100644 --- a/custom_components/bhyve/__init__.py +++ b/custom_components/bhyve/__init__.py @@ -121,7 +121,7 @@ async def async_update_callback(data): "programs": programs, } - hass.config_entries.async_setup_platforms(entry, PLATFORMS) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) entry.async_on_unload(entry.add_update_listener(update_listener)) hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, client.stop()) From 84a5f373842b085c09aab93dca523545d629cff3 Mon Sep 17 00:00:00 2001 From: Seb Ruiz Date: Thu, 9 Feb 2023 22:08:24 +1100 Subject: [PATCH 2/2] Bump to 3.1.2 --- custom_components/bhyve/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/bhyve/manifest.json b/custom_components/bhyve/manifest.json index e4f4e35..cf8e102 100644 --- a/custom_components/bhyve/manifest.json +++ b/custom_components/bhyve/manifest.json @@ -1,6 +1,6 @@ { "domain": "bhyve", - "version": "3.1.1", + "version": "3.1.2", "name": "Orbit B-hyve", "config_flow": true, "documentation": "https://github.com/sebr/bhyve-home-assistant/blob/master/README.md",