mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add extra tests for HomeWizard for unsupported entity creation (#105149)
This commit is contained in:
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:
|
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")
|
assert not hass.states.get("number.device_status_light_brightness")
|
||||||
|
@ -29,6 +29,13 @@ pytestmark = [
|
|||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
("device_fixture", "entity_ids"),
|
("device_fixture", "entity_ids"),
|
||||||
[
|
[
|
||||||
|
(
|
||||||
|
"HWE-P1",
|
||||||
|
[
|
||||||
|
"switch.device",
|
||||||
|
"switch.device_switch_lock",
|
||||||
|
],
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"HWE-WTR",
|
"HWE-WTR",
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user