Skip to content

Commit

Permalink
Merge pull request #7 from NitorCreations/fixes
Browse files Browse the repository at this point in the history
Coerce zeroconf IP address and port
  • Loading branch information
Jalle19 authored Sep 11, 2024
2 parents f9a2275 + 55fddc3 commit d0d1fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/vinx/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ async def async_step_zeroconf(self, discovery_info: ZeroconfServiceInfo) -> Conf
self._abort_if_unique_id_configured()

# Pre-populate the form
self.host = discovery_info.ip_address
self.port = discovery_info.port
self.host = str(discovery_info.ip_address)
self.port = int(discovery_info.port)

# Trigger the user configuration flow
return await self.async_step_user()

0 comments on commit d0d1fac

Please sign in to comment.