Update zeroconf discovery to use IPAddress objects to avoid conversions (#100567)
This commit is contained in:
parent
8dd3d6f989
commit
0eca433004
71 changed files with 575 additions and 462 deletions
|
@ -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.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue