Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/vodafone_station/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
entry.data[CONF_HOST],
entry.data[CONF_USERNAME],
entry.data[CONF_PASSWORD],
entry.unique_id,
entry,
)

await coordinator.async_config_entry_first_refresh()
Expand Down
5 changes: 3 additions & 2 deletions homeassistant/components/vodafone_station/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,22 @@ def __init__(
host: str,
username: str,
password: str,
config_entry_unique_id: str | None,
config_entry: ConfigEntry,
) -> None:
"""Initialize the scanner."""

self._host = host
self.api = VodafoneStationSercommApi(host, username, password)

# Last resort as no MAC or S/N can be retrieved via API
self._id = config_entry_unique_id
self._id = config_entry.unique_id

super().__init__(
hass=hass,
logger=_LOGGER,
name=f"{DOMAIN}-{host}-coordinator",
update_interval=timedelta(seconds=SCAN_INTERVAL),
config_entry=config_entry,
)
device_reg = dr.async_get(self.hass)
device_list = dr.async_entries_for_config_entry(
Expand Down