Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve deprecation warning in config_flow #12

Merged
merged 1 commit into from
Jan 19, 2022
Merged
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
4 changes: 2 additions & 2 deletions custom_components/hifiberry/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def schema(self):

async def async_step_zeroconf(self, discovery_info: DiscoveryInfoType) -> data_entry_flow.FlowResult:
"""Zeroconf detects hifiberry, but we don't have enough informatio to create entry."""
await self.async_set_unique_id(discovery_info['host'])
await self.async_set_unique_id(discovery_info.host)
self._abort_if_unique_id_configured()

self.host = discovery_info['host']
self.host = discovery_info.host
return await self.async_step_user()

async def async_step_user(
Expand Down