Skip to content

Commit

Permalink
maint: Change ssdp import inline with HA core 2025.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerSelwyn committed Jan 20, 2025
1 parent c145e67 commit adc68db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions custom_components/skyq/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
from homeassistant import config_entries, exceptions
from homeassistant.components import ssdp
from homeassistant.const import CONF_HOST, CONF_NAME
from homeassistant.core import callback
from homeassistant.data_entry_flow import AbortFlow, FlowResult

from homeassistant.helpers.service_info import ssdp
from pyskyqremote.const import KNOWN_COUNTRIES, UNSUPPORTED_DEVICES
from pyskyqremote.skyq_remote import SkyQRemote

Expand Down Expand Up @@ -204,7 +203,8 @@ def __init__(self, config_entry):
self._user_input = None

async def async_step_init(
self, user_input=None # pylint: disable=unused-argument
self,
user_input=None, # pylint: disable=unused-argument
) -> FlowResult:
"""Set up the option flow."""
if self._config_entry.entry_id not in self.hass.data[DOMAIN]:
Expand Down Expand Up @@ -364,9 +364,7 @@ def _fake_advanced_input(self):
advanced_input[CONF_ADD_BACKUP] = self._add_backup
return advanced_input

async def async_step_retry(
self, user_input=None
): # pylint: disable=unused-argument
async def async_step_retry(self, user_input=None): # pylint: disable=unused-argument
"""Handle a failed connection."""
errors = {"base": "cannot_connect"}

Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "SkyQ",
"zip_release": true,
"homeassistant": "2024.8.0",
"homeassistant": "2025.2.0",
"content_in_root": false,
"filename": "skyq.zip",
"render_readme": true
Expand Down

0 comments on commit adc68db

Please sign in to comment.