* tests for a Symo inverter system * update testing requirement * add tests for energy meter data * move response JSONs to fixture directory * add storage system response * review suggestion
23 lines
687 B
Python
23 lines
687 B
Python
"""Tests for the Fronius integration."""
|
|
|
|
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
|
|
from homeassistant.const import CONF_MONITORED_CONDITIONS, CONF_RESOURCE
|
|
from homeassistant.setup import async_setup_component
|
|
|
|
from .const import DOMAIN, MOCK_HOST
|
|
|
|
|
|
async def setup_fronius_integration(hass, devices):
|
|
"""Create the Fronius integration."""
|
|
assert await async_setup_component(
|
|
hass,
|
|
SENSOR_DOMAIN,
|
|
{
|
|
SENSOR_DOMAIN: {
|
|
"platform": DOMAIN,
|
|
CONF_RESOURCE: MOCK_HOST,
|
|
CONF_MONITORED_CONDITIONS: devices,
|
|
}
|
|
},
|
|
)
|
|
await hass.async_block_till_done()
|