Catch Shelly zeroconf types with uppercase too (#44672)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
c7fa98211d
commit
2b0556520b
2 changed files with 0 additions and 14 deletions
|
@ -488,14 +488,3 @@ async def test_zeroconf_require_auth(hass):
|
|||
}
|
||||
assert len(mock_setup.mock_calls) == 1
|
||||
assert len(mock_setup_entry.mock_calls) == 1
|
||||
|
||||
|
||||
async def test_zeroconf_not_shelly(hass):
|
||||
"""Test we filter out non-shelly devices."""
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
DOMAIN,
|
||||
data={"host": "1.1.1.1", "name": "notshelly"},
|
||||
context={"source": config_entries.SOURCE_ZEROCONF},
|
||||
)
|
||||
assert result["type"] == "abort"
|
||||
assert result["reason"] == "not_shelly"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue