Add extra tests for HomeWizard for unsupported entity creation (#105149)

pull/105201/head
Duco Sebel 2023-12-07 09:24:27 +01:00 committed by GitHub
parent ebde8ccfe4
commit 3d5329755f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -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")

View File

@ -29,6 +29,13 @@ pytestmark = [
@pytest.mark.parametrize(
("device_fixture", "entity_ids"),
[
(
"HWE-P1",
[
"switch.device",
"switch.device_switch_lock",
],
),
(
"HWE-WTR",
[