feat(sfm): DeviceAccess lists and downloads events for both series

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
serversdownandClaude Haiku 5.5 committed 2026-10-21 17:02:19 -04:00
1 parent 0a01a8d2db
commit 9e2d8b62c3
3 files changed
+114 -5

No files matched your search

+7 -1
View File
@@ -14,7 +14,9 @@ from micromate.client import MicromateClient
from micromate.protocol import THOR_CHUNK_SIZE
from minimateplus.transport import BaseTransport, SerialTransport, TcpTransport
from .errors import CallHomeInProgress, EventNotFound, MalformedReply, StaleEvent, WrongUnit, translate
from .errors import (
CallHomeInProgress, DeviceError, EventNotFound, MalformedReply, StaleEvent, WrongUnit, translate,
)
from .events import iso_of, make_event_id, stamp_of
from .models import DownloadedEvent, EventList, EventRef, UnitAddress, UnitInfo, UnitSettings, UnitStatus
from .series import normalise_serial
@@ -157,6 +159,10 @@ class Series4Session:
log.warning("RADIO RING from %s -- released the line so the call reaches THOR",
self.address.key)
raise CallHomeInProgress(_RING_MESSAGE) from exc
except DeviceError:
# The operation's own verdict (event not found, stale id): the line
# is healthy, so keep it. Library errors still hang up below.
raise
except Exception as exc:
self.hang_up()
raise translate(exc, connecting=False) from exc