mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 07:25:52 -05:00
Ensure domain is correct format (#58429)
This commit is contained in:
@@ -540,3 +540,9 @@ async def test_custom_integration_missing(hass, caplog):
|
||||
|
||||
with pytest.raises(loader.IntegrationNotFound):
|
||||
await loader.async_get_integration(hass, "test1")
|
||||
|
||||
|
||||
async def test_validation(hass):
|
||||
"""Test we raise if invalid domain passed in."""
|
||||
with pytest.raises(ValueError):
|
||||
await loader.async_get_integration(hass, "some.thing")
|
||||
|
||||
Reference in New Issue
Block a user