|
|
@@ -16,7 +16,7 @@ async def test_init_entry(hass):
|
|
|
"""Test the initialisation."""
|
|
|
entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
- data={CONF_TYPE: "kogan_switch", CONF_DEVICE_ID: "dummy", CONF_SWITCH: True},
|
|
|
+ data={CONF_TYPE: "kogan_switch", CONF_DEVICE_ID: "dummy"},
|
|
|
)
|
|
|
# although async, the async_add_entities function passed to
|
|
|
# async_setup_entry is called truly asynchronously. If we use
|
|
|
@@ -37,7 +37,7 @@ async def test_init_entry_as_secondary(hass):
|
|
|
"""Test the initialisation."""
|
|
|
entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
- data={CONF_TYPE: "deta_fan", CONF_DEVICE_ID: "dummy", "switch_master": True},
|
|
|
+ data={CONF_TYPE: "deta_fan", CONF_DEVICE_ID: "dummy"},
|
|
|
)
|
|
|
# although async, the async_add_entities function passed to
|
|
|
# async_setup_entry is called truly asynchronously. If we use
|
|
|
@@ -58,7 +58,7 @@ async def test_init_entry_fails_if_device_has_no_switch(hass):
|
|
|
"""Test initialisation when device has no matching entity"""
|
|
|
entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
- data={CONF_TYPE: "kogan_heater", CONF_DEVICE_ID: "dummy", CONF_SWITCH: True},
|
|
|
+ data={CONF_TYPE: "kogan_heater", CONF_DEVICE_ID: "dummy"},
|
|
|
)
|
|
|
# although async, the async_add_entities function passed to
|
|
|
# async_setup_entry is called truly asynchronously. If we use
|
|
|
@@ -81,7 +81,7 @@ async def test_init_entry_fails_if_config_is_missing(hass):
|
|
|
"""Test initialisation when device has no matching entity"""
|
|
|
entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
- data={CONF_TYPE: "non_existing", CONF_DEVICE_ID: "dummy", CONF_SWITCH: True},
|
|
|
+ data={CONF_TYPE: "non_existing", CONF_DEVICE_ID: "dummy"},
|
|
|
)
|
|
|
# although async, the async_add_entities function passed to
|
|
|
# async_setup_entry is called truly asynchronously. If we use
|