Skip to content

Commit 5d66313

Browse files
authored
Don't guard system ID or serial against missing data (#384)
1 parent 3e330fa commit 5d66313

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

simplipy/system/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ def notifications(self) -> list[SystemNotification]:
209209
return self._notifications
210210

211211
@property
212-
@guard_from_missing_data()
213-
def serial(self) -> str | None:
212+
def serial(self) -> str:
214213
"""Return the system's serial number.
215214
216215
Returns:
@@ -231,8 +230,7 @@ def state(self) -> SystemStates:
231230
return self._state
232231

233232
@property
234-
@guard_from_missing_data()
235-
def system_id(self) -> int | None:
233+
def system_id(self) -> int:
236234
"""Return the SimpliSafe identifier for this system.
237235
238236
Returns:

0 commit comments

Comments
 (0)