Block custom integrations with missing or invalid version (#49916)

This commit is contained in:
Joakim Sørensen 2021-05-17 15:48:41 +02:00 committed by GitHub
parent ac6d99d434
commit 2f10f59717
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 369 additions and 314 deletions

View file

@ -6,6 +6,7 @@ import homeassistant.components.image_processing as ip
from homeassistant.const import ATTR_ENTITY_PICTURE
from homeassistant.core import callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.loader import DATA_CUSTOM_COMPONENTS
from homeassistant.setup import setup_component
from tests.common import (
@ -50,6 +51,7 @@ class TestImageProcessing:
def setup_method(self):
"""Set up things to be run when tests are started."""
self.hass = get_test_home_assistant()
self.hass.data.pop(DATA_CUSTOM_COMPONENTS)
setup_component(
self.hass,