mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Use dataclass properties in elgato discovery (#60588)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
d74145ed7b
commit
64afe738cc
@ -46,8 +46,8 @@ class ElgatoFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
self, discovery_info: zeroconf.ZeroconfServiceInfo
|
self, discovery_info: zeroconf.ZeroconfServiceInfo
|
||||||
) -> FlowResult:
|
) -> FlowResult:
|
||||||
"""Handle zeroconf discovery."""
|
"""Handle zeroconf discovery."""
|
||||||
self.host = discovery_info[zeroconf.ATTR_HOST]
|
self.host = discovery_info.host
|
||||||
self.port = discovery_info[zeroconf.ATTR_PORT] or 9123
|
self.port = discovery_info.port or 9123
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await self._get_elgato_serial_number()
|
await self._get_elgato_serial_number()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user