Add extra tests for HomeWizard for unsupported entity creation (#105149)
parent
ebde8ccfe4
commit
3d5329755f
|
@ -97,7 +97,7 @@ async def test_number_entities(
|
|||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("device_fixture", ["HWE-WTR", "SDM230", "SDM630"])
|
||||
@pytest.mark.parametrize("device_fixture", ["HWE-P1", "HWE-WTR", "SDM230", "SDM630"])
|
||||
async def test_entities_not_created_for_device(hass: HomeAssistant) -> None:
|
||||
"""Does not load button when device has no support for it."""
|
||||
"""Does not load number when device has no support for it."""
|
||||
assert not hass.states.get("number.device_status_light_brightness")
|
||||
|
|
|
@ -29,6 +29,13 @@ pytestmark = [
|
|||
@pytest.mark.parametrize(
|
||||
("device_fixture", "entity_ids"),
|
||||
[
|
||||
(
|
||||
"HWE-P1",
|
||||
[
|
||||
"switch.device",
|
||||
"switch.device_switch_lock",
|
||||
],
|
||||
),
|
||||
(
|
||||
"HWE-WTR",
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue