Fix casing on Powerview Gen3 zeroconf discovery (#128076)

pull/128176/head
kingy444 2024-10-10 23:22:14 +11:00 committed by Franck Nijhof
parent a3475607b2
commit 571bfaf5d7
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
4 changed files with 8 additions and 8 deletions

View File

@ -23,7 +23,7 @@ _LOGGER = logging.getLogger(__name__)
HAP_SUFFIX = "._hap._tcp.local."
POWERVIEW_G2_SUFFIX = "._powerview._tcp.local."
POWERVIEW_G3_SUFFIX = "._powerview-g3._tcp.local."
POWERVIEW_G3_SUFFIX = "._PowerView-G3._tcp.local."
async def validate_input(hass: HomeAssistant, hub_address: str) -> dict[str, str]:

View File

@ -19,5 +19,5 @@
"iot_class": "local_polling",
"loggers": ["aiopvapi"],
"requirements": ["aiopvapi==3.1.1"],
"zeroconf": ["_powerview._tcp.local.", "_powerview-g3._tcp.local."]
"zeroconf": ["_powerview._tcp.local.", "_PowerView-G3._tcp.local."]
}

View File

@ -267,6 +267,11 @@ HOMEKIT = {
}
ZEROCONF = {
"_PowerView-G3._tcp.local.": [
{
"domain": "hunterdouglas_powerview",
},
],
"_Volumio._tcp.local.": [
{
"domain": "volumio",
@ -695,11 +700,6 @@ ZEROCONF = {
"domain": "plugwise",
},
],
"_powerview-g3._tcp.local.": [
{
"domain": "hunterdouglas_powerview",
},
],
"_powerview._tcp.local.": [
{
"domain": "hunterdouglas_powerview",

View File

@ -41,7 +41,7 @@ ZEROCONF_DISCOVERY_GEN3 = zeroconf.ZeroconfServiceInfo(
ip_address="1.2.3.4",
ip_addresses=[IPv4Address("1.2.3.4")],
hostname="mock_hostname",
name="Powerview Generation 3._powerview-g3._tcp.local.",
name="Powerview Generation 3._PowerView-G3._tcp.local.",
port=None,
properties={},
type="mock_type",