Commit 6285ffa
refactor(peripheral-demo): widen sensor state setters to accept null
- Update setTemperature, setHumidity, setAirPressure to accept number | null
- Keeps state API consistent with the nullable AppState field types
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ee6cce6 commit 6285ffa
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments