Skip to content

Commit

Permalink
Merge pull request #146 from TheZoker/fix-deprecation
Browse files Browse the repository at this point in the history
Fix HA 2025.2.0b0 deprecation warning
  • Loading branch information
mvdwetering authored Feb 5, 2025
2 parents d158412 + c43746b commit f74dc64
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]
steps:
- uses: "actions/checkout@v4"
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions custom_components/huesyncbox/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import aiohuesyncbox
import voluptuous as vol # type: ignore

from homeassistant.components import zeroconf
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
from homeassistant.const import (
CONF_ACCESS_TOKEN,
Expand All @@ -20,6 +19,7 @@
CONF_UNIQUE_ID,
)
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.service_info.zeroconf import ZeroconfServiceInfo

from . import HueSyncBoxConfigEntry
from .const import DEFAULT_PORT, DOMAIN, REGISTRATION_ID
Expand Down Expand Up @@ -197,7 +197,7 @@ async def async_step_configure(
)

async def async_step_zeroconf(
self, discovery_info: zeroconf.ZeroconfServiceInfo
self, discovery_info: ZeroconfServiceInfo
) -> ConfigFlowResult:
"""Handle zeroconf discovery."""
_LOGGER.debug("async_step_zeroconf, %s", discovery_info)
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Philips Hue Play HDMI Sync Box",
"homeassistant": "2024.8.0",
"homeassistant": "2025.2.0",
"render_readme": true,
"zip_release": true,
"filename": "huesyncbox.zip"
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements_test.txt

awesomeversion>=24.0.0
homeassistant-stubs==2024.8.0
homeassistant-stubs==2025.2.0
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

mypy==1.11.0

pytest-homeassistant-custom-component==0.13.152
pytest-homeassistant-custom-component==0.13.208

# Not entirely clear why it is needed as not a requirement for huesyncbox directly
# but the tests fail because HA seems to initialize the zeroconf component which fails due to missing lib.
Expand Down

0 comments on commit f74dc64

Please sign in to comment.