Speed up mqtt tests (#73423)
Co-authored-by: jbouwh <jan@jbsoft.nl> Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
This commit is contained in:
parent
034c0c0593
commit
51b4d15c8c
29 changed files with 281 additions and 10 deletions
|
@ -29,6 +29,7 @@ from homeassistant.const import (
|
|||
STATE_OFF,
|
||||
STATE_ON,
|
||||
STATE_UNKNOWN,
|
||||
Platform,
|
||||
)
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
|
@ -75,6 +76,13 @@ DEFAULT_CONFIG = {
|
|||
}
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def humidifer_platform_only():
|
||||
"""Only setup the humidifer platform to speed up tests."""
|
||||
with patch("homeassistant.components.mqtt.PLATFORMS", [Platform.HUMIDIFIER]):
|
||||
yield
|
||||
|
||||
|
||||
async def async_turn_on(
|
||||
hass,
|
||||
entity_id=ENTITY_MATCH_ALL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue