Skip to content

Commit 4505891

Browse files
authored
Use dataclass properties in zeroconf discovery (#155)
1 parent aac178b commit 4505891

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/remote_homeassistant/config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ async def async_step_connection_details(self, user_input=None):
148148

149149
async def async_step_zeroconf(self, info):
150150
"""Handle instance discovered via zeroconf."""
151-
properties = info["properties"]
152-
port = info["port"]
151+
properties = info.properties
152+
port = info.port
153153
uuid = properties["uuid"]
154154

155155
await self.async_set_unique_id(uuid)

0 commit comments

Comments
 (0)