mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Remove unused fixture from LCN tests (#133821)
This commit is contained in:
parent
6c70586f7e
commit
344a03d9ce
@ -16,7 +16,6 @@ from homeassistant.components.lcn.helpers import AddressType, generate_unique_id
|
|||||||
from homeassistant.const import CONF_ADDRESS, CONF_DEVICES, CONF_ENTITIES, CONF_HOST
|
from homeassistant.const import CONF_ADDRESS, CONF_DEVICES, CONF_ENTITIES, CONF_HOST
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers import device_registry as dr
|
from homeassistant.helpers import device_registry as dr
|
||||||
from homeassistant.setup import async_setup_component
|
|
||||||
|
|
||||||
from tests.common import MockConfigEntry, load_fixture
|
from tests.common import MockConfigEntry, load_fixture
|
||||||
|
|
||||||
@ -134,15 +133,6 @@ async def init_integration(
|
|||||||
return lcn_connection
|
return lcn_connection
|
||||||
|
|
||||||
|
|
||||||
async def setup_component(hass: HomeAssistant) -> None:
|
|
||||||
"""Set up the LCN component."""
|
|
||||||
fixture_filename = "lcn/config.json"
|
|
||||||
config_data = json.loads(load_fixture(fixture_filename))
|
|
||||||
|
|
||||||
await async_setup_component(hass, DOMAIN, config_data)
|
|
||||||
await hass.async_block_till_done()
|
|
||||||
|
|
||||||
|
|
||||||
def get_device(
|
def get_device(
|
||||||
hass: HomeAssistant, entry: MockConfigEntry, address: AddressType
|
hass: HomeAssistant, entry: MockConfigEntry, address: AddressType
|
||||||
) -> dr.DeviceEntry:
|
) -> dr.DeviceEntry:
|
||||||
|
@ -1,165 +0,0 @@
|
|||||||
{
|
|
||||||
"lcn": {
|
|
||||||
"connections": [
|
|
||||||
{
|
|
||||||
"host": "192.168.2.41",
|
|
||||||
"port": 4114,
|
|
||||||
"username": "lcn",
|
|
||||||
"password": "lcn",
|
|
||||||
"sk_num_tries": 0,
|
|
||||||
"dim_mode": "steps200",
|
|
||||||
"name": "pchk"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "myhome",
|
|
||||||
"host": "192.168.2.42",
|
|
||||||
"port": 4114,
|
|
||||||
"username": "lcn",
|
|
||||||
"password": "lcn",
|
|
||||||
"sk_num_tries": 0,
|
|
||||||
"dim_mode": "steps200"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"lights": [
|
|
||||||
{
|
|
||||||
"name": "Light_Output1",
|
|
||||||
"address": "pchk.s0.m7",
|
|
||||||
"output": "output1",
|
|
||||||
"dimmable": true,
|
|
||||||
"transition": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Light_Output2",
|
|
||||||
"address": "pchk.s0.m7",
|
|
||||||
"output": "output2",
|
|
||||||
"dimmable": false,
|
|
||||||
"transition": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Light_Relay1",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"output": "relay1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Light_Relay3",
|
|
||||||
"address": "myhome.s0.m7",
|
|
||||||
"output": "relay3"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Light_Relay4",
|
|
||||||
"address": "myhome.s0.m7",
|
|
||||||
"output": "relay4"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"switches": [
|
|
||||||
{
|
|
||||||
"name": "Switch_Output1",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"output": "output1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Switch_Output2",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"output": "output2"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Switch_Relay1",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"output": "relay1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Switch_Relay2",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"output": "relay2"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Switch_Group5",
|
|
||||||
"address": "s0.g5",
|
|
||||||
"output": "relay1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"covers": [
|
|
||||||
{
|
|
||||||
"name": "Cover_Ouputs",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"motor": "outputs",
|
|
||||||
"reverse_time": "rt1200"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Cover_Relays",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"motor": "motor1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"climates": [
|
|
||||||
{
|
|
||||||
"name": "Climate1",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"source": "var1",
|
|
||||||
"setpoint": "r1varsetpoint",
|
|
||||||
"lockable": true,
|
|
||||||
"min_temp": 0,
|
|
||||||
"max_temp": 40,
|
|
||||||
"unit_of_measurement": "°C"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"scenes": [
|
|
||||||
{
|
|
||||||
"name": "Romantic",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"register": 0,
|
|
||||||
"scene": 0,
|
|
||||||
"outputs": ["output1", "output2", "relay1"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Romantic Transition",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"register": 0,
|
|
||||||
"scene": 1,
|
|
||||||
"outputs": ["output1", "output2", "relay1"],
|
|
||||||
"transition": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"binary_sensors": [
|
|
||||||
{
|
|
||||||
"name": "Sensor_LockRegulator1",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"source": "r1varsetpoint"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Binary_Sensor1",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"source": "binsensor1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Sensor_KeyLock",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"source": "a5"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sensors": [
|
|
||||||
{
|
|
||||||
"name": "Sensor_Var1",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"source": "var1",
|
|
||||||
"unit_of_measurement": "°C"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Sensor_Setpoint1",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"source": "r1varsetpoint",
|
|
||||||
"unit_of_measurement": "°C"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Sensor_Led6",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"source": "led6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Sensor_LogicOp1",
|
|
||||||
"address": "s0.m7",
|
|
||||||
"source": "logicop1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user