Skip to content

Commit 3699d0f

Browse files
authored
Merge pull request #1020 from plugwise/ZeroconfServiceInfo
Test: replace zeroconf.ZeroconfServiceInfo
2 parents 0322876 + bb0b518 commit 3699d0f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Versions from 0.40 and up
88
- Chores
99
- Introduce prek (for pre-commit) & align with v2 gh-actions
1010
- Replace node-based markdownlint with pythonic library
11+
- Fix zeroconf.ZeroconfServiceInfo use via PR [#1020](https://github.com/plugwise/plugwise-beta/pull/1020)
1112

1213
## v0.62.2
1314

tests/components/plugwise/test_config_flow.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
)
1313
import pytest
1414

15-
from homeassistant.components import zeroconf
1615
from homeassistant.components.plugwise.const import (
1716
CONF_HOMEKIT_EMULATION,
1817
CONF_REFRESH_INTERVAL,
@@ -46,7 +45,7 @@
4645
TEST_USERNAME2 = "stretch"
4746
TEST_SMILE_ID = "smile12345"
4847

49-
TEST_DISCOVERY = zeroconf.ZeroconfServiceInfo(
48+
TEST_DISCOVERY = ZeroconfServiceInfo(
5049
ip_address=TEST_HOST,
5150
ip_addresses=[TEST_HOST],
5251
# The added `-2` is to simulate mDNS collision
@@ -60,7 +59,7 @@
6059
},
6160
type="mock_type",
6261
)
63-
TEST_DISCOVERY2 = zeroconf.ZeroconfServiceInfo(
62+
TEST_DISCOVERY2 = ZeroconfServiceInfo(
6463
ip_address=TEST_HOST,
6564
ip_addresses=[TEST_HOST],
6665
hostname=f"{TEST_HOSTNAME2}.local.",

0 commit comments

Comments
 (0)