From 26f297f65168c683b6ce8f576f03da5ec741a1e5 Mon Sep 17 00:00:00 2001 From: John Neerdael Date: Sat, 11 Jan 2025 19:26:43 +0100 Subject: [PATCH] ersion bump --- README.md | 8 +++++++- custom_components/hyperhdr_control/__init__.py | 18 +++--------------- .../hyperhdr_control/manifest.json | 2 +- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 54c16bb..86ec11d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ -# HyperHDR Control for Home Assistant +Logger: homeassistant.helpers.frame +Source: helpers/frame.py:324 +First occurred: 17:51:14 (2 occurrences) +Last logged: 17:51:17 + +Detected that custom integration 'hyperhdr_control' calls async_forward_entry_setup for integration, hyperhdr_control with title: Boardgame Room Ambilight Controls and entry_id: 01JH76177VYW6KRHK4HF38RXDA, which is deprecated, await async_forward_entry_setups instead at custom_components/hyperhdr_control/__init__.py, line 40: hass.async_create_task(. This will stop working in Home Assistant 2025.6, please report it to the author of the 'hyperhdr_control' custom integration +Detected that custom integration 'govee_lan' calls async_forward_entry_setup for integration, govee_lan with title: Govee Boardgame Room LAN Control and entry_id: 01JH8QA1X1219F5NX1AVFYW8HF, which is deprecated, await async_forward_entry_setups instead at custom_components/govee_lan/__init__.py, line 32: hass.async_create_task(. This will stop working in Home Assistant 2025.6, please create a bug report at https://github.com/wez/govee-lan-hass/issues# HyperHDR Control for Home Assistant A Home Assistant integration to control HyperHDR LED controller. This integration provides switches to control the LED and USB capture devices, a brightness slider, and buttons to activate various effects. diff --git a/custom_components/hyperhdr_control/__init__.py b/custom_components/hyperhdr_control/__init__.py index 981bd1c..1d8941d 100644 --- a/custom_components/hyperhdr_control/__init__.py +++ b/custom_components/hyperhdr_control/__init__.py @@ -5,7 +5,6 @@ from homeassistant.core import HomeAssistant from homeassistant.const import CONF_HOST, CONF_PORT, Platform from homeassistant.helpers import device_registry as dr -import asyncio from .const import DOMAIN @@ -35,24 +34,13 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: sw_version="1.3.3", ) - # Set up all platforms - for platform in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, platform) - ) - + # Set up all platforms using the recommended method + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) return True async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Unload a 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) if unload_ok: hass.data[DOMAIN].pop(entry.entry_id) diff --git a/custom_components/hyperhdr_control/manifest.json b/custom_components/hyperhdr_control/manifest.json index 82f27c7..b525b83 100644 --- a/custom_components/hyperhdr_control/manifest.json +++ b/custom_components/hyperhdr_control/manifest.json @@ -7,7 +7,7 @@ "codeowners": ["@johnneerdael"], "requirements": ["aiohttp", "zeroconf"], "iot_class": "local_polling", - "version": "1.3.3", + "version": "1.3.4", "config_flow": true, "zeroconf": ["_hyperhdr-http._tcp.local."], "logo": "https://raw.githubusercontent.com/johnneerdael/hyperhdr_control/main/hyperhdr_control-logo.png"