mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-06-29 11:05:17 +02:00
Fix test
This commit is contained in:
parent
fbeca664e3
commit
1be4ecfe7a
|
@ -294,18 +294,6 @@ def test_cover_state_legacy_state(state, version, out):
|
||||||
assert state.is_closed(APIVersion(*version)) is out
|
assert state.is_closed(APIVersion(*version)) is out
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
|
||||||
"state, version, out",
|
|
||||||
[
|
|
||||||
(ValveState(position=1.0), (1, 1), False),
|
|
||||||
(ValveState(position=0.5), (1, 1), False),
|
|
||||||
(ValveState(position=0.0), (1, 1), True),
|
|
||||||
],
|
|
||||||
)
|
|
||||||
def test_valve_state(state, version, out):
|
|
||||||
assert state.is_closed() is out
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"state, version, out",
|
"state, version, out",
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user