fix(sfm): Series-3 status says its serial is unverified

Series 3 status reads no serial, so the serial shown is the requested one, not one the unit reported. detail now carries serial_verified=False.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-10-21 01:12:17 -04:00
1 parent 5c6ca049c8
commit d39f8ef360
2 files changed
+3

No files matched your search

+2
View File
@@ -91,6 +91,8 @@ class Series3Adapter:
battery_volts=round(ms.battery_v, 2) if ms.battery_v is not None else None,
memory_total_bytes=ms.memory_total, memory_free_bytes=ms.memory_free,
device_time=None, event_count=None,
# Series 3 status reads no serial, so the serial shown is the one requested, not one the unit reported.
detail={"serial_verified": False},
)
return self._run(address, op)
+1
View File
@@ -47,6 +47,7 @@ def test_status_maps_monitor_status():
assert (st.series, st.monitoring, st.battery_volts) == (3, True, 6.8)
assert (st.memory_total_bytes, st.memory_free_bytes) == (983026, 900000)
assert st.event_count is None and st.device_time is None
assert st.detail == {"serial_verified": False}
assert fake.calls == ["poll", "get_monitor_status"]