Prevent deleting blueprints which are in use (#78444)

This commit is contained in:
Erik Montnemery 2022-09-14 16:47:08 +02:00 committed by GitHub
parent 855b0dfdba
commit 2ba0f42acc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 192 additions and 8 deletions

View file

@ -47,7 +47,9 @@ def blueprint_2():
@pytest.fixture
def domain_bps(hass):
"""Domain blueprints fixture."""
return models.DomainBlueprints(hass, "automation", logging.getLogger(__name__))
return models.DomainBlueprints(
hass, "automation", logging.getLogger(__name__), None
)
def test_blueprint_model_init():