Skip to content

Commit

Permalink
Use new ServiceInfo location in homeassistant_sky_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Jan 15, 2025
1 parent e83ee00 commit 13c0702
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
OptionsFlow,
)
from homeassistant.core import callback
from homeassistant.helpers.service_info.usb import UsbServiceInfo

from .const import DOCS_WEB_FLASHER_URL, DOMAIN, HardwareVariant
from .util import get_hardware_variant, get_usb_service_info
Expand Down Expand Up @@ -69,7 +70,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
"""Initialize the config flow."""
super().__init__(*args, **kwargs)

self._usb_info: usb.UsbServiceInfo | None = None
self._usb_info: UsbServiceInfo | None = None
self._hw_variant: HardwareVariant | None = None

@staticmethod
Expand All @@ -85,9 +86,7 @@ def async_get_options_flow(

return HomeAssistantSkyConnectOptionsFlowHandler(config_entry)

async def async_step_usb(
self, discovery_info: usb.UsbServiceInfo
) -> ConfigFlowResult:
async def async_step_usb(self, discovery_info: UsbServiceInfo) -> ConfigFlowResult:
"""Handle usb discovery."""
device = discovery_info.device
vid = discovery_info.vid
Expand Down

0 comments on commit 13c0702

Please sign in to comment.