Skip to content

Commit

Permalink
Merge pull request #109 from PimDoos/dev
Browse files Browse the repository at this point in the history
Use relocated zeroconf ServiceInfo model
  • Loading branch information
PimDoos authored Jan 31, 2025
2 parents 9ffaea3 + 61cd49d commit 20313bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/sessy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import voluptuous as vol

from homeassistant import config_entries
from homeassistant.components import zeroconf
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResult
from homeassistant.exceptions import HomeAssistantError
Expand All @@ -18,6 +17,7 @@
CONF_NAME,
CONF_SCAN_INTERVAL
)
from homeassistant.helpers.service_info.zeroconf import ZeroconfServiceInfo

from sessypy.devices import get_sessy_device, SessyBattery, SessyP1Meter, SessyCTMeter
from sessypy.util import SessyConnectionException, SessyLoginException
Expand Down Expand Up @@ -116,7 +116,7 @@ def _name(self, value: str) -> None:
self.context["title_placeholders"] = {"name": self._name}

async def async_step_zeroconf(
self, discovery_info: zeroconf.ZeroconfServiceInfo
self, discovery_info: ZeroconfServiceInfo
) -> FlowResult:
"""Handle zeroconf discovery."""

Expand Down

0 comments on commit 20313bb

Please sign in to comment.