You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Example sensor polling function; replace with your own
26
+
defread_sensor_temp():
27
+
return60
28
+
29
+
# After updating temp, check the heat relay flag
30
+
therm.set_temp(read_sensor_temp())
31
+
assert therm.heating.is_set()
32
+
```
33
+
34
+
See `thermostat.py` for the full API.
35
+
36
+
## Developing
37
+
38
+
You need python and a build of micropython with `asyncio` support. Follow the steps in the CI workflow to get a `micropython` binary and add it to your `PATH`.
39
+
40
+
Before making changes, install the development dependencies:
41
+
42
+
```bash
43
+
pip install -r dev-requirements.txt
44
+
```
45
+
46
+
After making changes, you can run the linter:
47
+
48
+
```bash
49
+
ruff check
50
+
```
51
+
52
+
Before running tests, install the test dependencies:
0 commit comments