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
Rename SensorStateCode variant ON to OK in sensors.proto
Sensor state `ON` is misleading, as it can mislead users to think that
the API controls the on/off state of the sensor. This is not the case,
as the API only provides information about the sensor's state. The
sensor's state can be `OK` (indicating that the sensor is functioning
correctly) or `ERROR` (indicating that the sensor is in an error state).
This change renames the `SENSOR_STATE_CODE_ON` variant to
`SENSOR_STATE_CODE_OK`, which is more accurate and descriptive.
Signed-off-by: Tiyash Basu <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@
38
38
- Remove `SensorMetricSample` in favour of using `MetricSample` for sensors.
39
39
- Remove `SensorMetric` enum, since it was unused and redundant.
40
40
- Renamed `MetricSample.source` to `MetricSample.connection` to make it more specific as to what it refers to.
41
+
- Rename `SensorStateCode.SENSOR_STATE_CODE_ON` to `SensorStateCode.SENSOR_STATE_CODE_OK`, to better indicate that we do not control on/off state of sensors.
0 commit comments