2023-12-26 21:24:28 +00:00
|
|
|
"""Tests for the StreamLabs integration."""
|
2024-03-08 19:38:34 +00:00
|
|
|
|
2024-01-04 08:57:00 +00:00
|
|
|
from homeassistant.core import HomeAssistant
|
2024-06-11 14:09:02 +00:00
|
|
|
from homeassistant.util.unit_system import US_CUSTOMARY_SYSTEM
|
2024-01-04 08:57:00 +00:00
|
|
|
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
|
|
|
|
|
|
async def setup_integration(hass: HomeAssistant, config_entry: MockConfigEntry) -> None:
|
|
|
|
"""Fixture for setting up the component."""
|
|
|
|
config_entry.add_to_hass(hass)
|
|
|
|
|
2024-06-11 14:09:02 +00:00
|
|
|
hass.config.units = US_CUSTOMARY_SYSTEM
|
2024-01-04 08:57:00 +00:00
|
|
|
|
|
|
|
await hass.config_entries.async_setup(config_entry.entry_id)
|
|
|
|
await hass.async_block_till_done()
|