Skip to content

Commit 0e2381e

Browse files
committed
try 2; fix test
1 parent 2efaa55 commit 0e2381e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_usb.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ async def test_stick_node_discovered_subscription(
614614
with pytest.raises(pw_exceptions.FeatureError):
615615
assert stick.nodes["5555555555555555"].power
616616
with pytest.raises(pw_exceptions.FeatureError):
617-
assert stick.nodes["5555555555555555"].sense_statistics
617+
assert stick.nodes["5555555555555555"].sense
618618
with pytest.raises(pw_exceptions.FeatureError):
619619
assert stick.nodes["5555555555555555"].energy
620620

@@ -845,9 +845,7 @@ async def test_node_relay_and_power(self, monkeypatch: pytest.MonkeyPatch) -> No
845845
with pytest.raises(pw_exceptions.FeatureError):
846846
assert stick.nodes["0098765432101234"].switch
847847
with pytest.raises(pw_exceptions.FeatureError):
848-
assert stick.nodes["0098765432101234"].humidity
849-
with pytest.raises(pw_exceptions.FeatureError):
850-
assert stick.nodes["0098765432101234"].temperature
848+
assert stick.nodes["0098765432101234"].sense
851849

852850
# Test relay init
853851
# load node 2222222222222222 which has

0 commit comments

Comments
 (0)