Zeroconf lowercase (#44675)

This commit is contained in:
Paulus Schoutsen 2020-12-31 01:06:26 +01:00 committed by GitHub
parent b290a8b5a1
commit c7bf7b32a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 20 deletions

View file

@ -242,13 +242,17 @@ async def test_zeroconf_match(hass, mock_zeroconf):
handlers[0](
zeroconf,
"_http._tcp.local.",
"shelly108._http._tcp.local.",
"Shelly108._http._tcp.local.",
ServiceStateChange.Added,
)
with patch.dict(
zc_gen.ZEROCONF,
{"_http._tcp.local.": [{"domain": "shelly", "name": "shelly*"}]},
{
"_http._tcp.local.": [
{"domain": "shelly", "name": "shelly*", "macaddress": "FFAADD*"}
]
},
clear=True,
), patch.object(
hass.config_entries.flow, "async_init"