We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7560009 commit 2f8e6e3Copy full SHA for 2f8e6e3
1 file changed
tests/scenarios/hts221.yaml
@@ -85,6 +85,19 @@ tests:
85
expect_not_none: true
86
mode: [mock, hardware]
87
88
+ - name: "Auto-trigger after poweroff"
89
+ action: hardware_script
90
+ script: |
91
+ from machine import I2C
92
+ from hts221.device import HTS221
93
+ i2c = I2C(1)
94
+ sensor = HTS221(i2c)
95
+ sensor.poweroff()
96
+ t = sensor.temperature()
97
+ result = 10.0 <= t <= 45.0
98
+ expect_true: true
99
+ mode: [hardware]
100
+
101
- name: "Temperature feels correct"
102
action: manual
103
display:
0 commit comments