mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Cleanup mqtt PLATFORMS constant and CI-test platform filters (#112847)
This commit is contained in:
@ -190,13 +190,7 @@ from homeassistant.components.mqtt.light.schema_basic import (
|
||||
VALUE_TEMPLATE_KEYS,
|
||||
)
|
||||
from homeassistant.components.mqtt.models import PublishPayloadType
|
||||
from homeassistant.const import (
|
||||
ATTR_ASSUMED_STATE,
|
||||
STATE_OFF,
|
||||
STATE_ON,
|
||||
STATE_UNKNOWN,
|
||||
Platform,
|
||||
)
|
||||
from homeassistant.const import ATTR_ASSUMED_STATE, STATE_OFF, STATE_ON, STATE_UNKNOWN
|
||||
from homeassistant.core import HomeAssistant, State
|
||||
|
||||
from .test_common import (
|
||||
@ -239,13 +233,6 @@ DEFAULT_CONFIG = {
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def light_platform_only():
|
||||
"""Only setup the light platform to speed up tests."""
|
||||
with patch("homeassistant.components.mqtt.PLATFORMS", [Platform.LIGHT]):
|
||||
yield
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"hass_config", [{mqtt.DOMAIN: {light.DOMAIN: {"name": "test"}}}]
|
||||
)
|
||||
|
Reference in New Issue
Block a user