Update zeroconf discovery to use IPAddress objects to avoid conversions (#100567)

This commit is contained in:
J. Nick Koston 2023-09-19 18:58:46 +02:00 committed by GitHub
parent 8dd3d6f989
commit 0eca433004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
71 changed files with 575 additions and 462 deletions

View file

@ -1,4 +1,5 @@
"""Test config flow."""
from ipaddress import ip_address
from unittest.mock import patch
from requests import RequestException
@ -75,8 +76,8 @@ async def test_zeroconf_flow_create_entry(
DOMAIN,
context={CONF_SOURCE: SOURCE_ZEROCONF},
data=ZeroconfServiceInfo(
host=DEVICE_1_IP,
addresses=[DEVICE_1_IP],
ip_address=ip_address(DEVICE_1_IP),
ip_addresses=[ip_address(DEVICE_1_IP)],
port=8090,
hostname="Bose-SM2-060000000001.local.",
type="_soundtouch._tcp.local.",