Skip to content

Commit 49a8838

Browse files
committed
Make zone_id and stream_id optional for ZoneAlarm
1 parent 27e506a commit 49a8838

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

brainframe/api/bf_codecs/alarm_codecs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ class ZoneAlarm(Codec):
1313
name: str
1414
"""A friendly name for the zone alarm"""
1515

16-
zone_id: int
17-
"""The ID of the zone this alarm is associated with"""
18-
19-
stream_id: int
20-
"""The ID of the stream the associated zone is in"""
21-
2216
count_conditions: List[ZoneAlarmCountCondition]
2317
"""All count conditions for this alarm"""
2418

@@ -43,6 +37,12 @@ class ZoneAlarm(Codec):
4337
id: Optional[int] = None
4438
"""A unique identifier"""
4539

40+
zone_id: Optional[int] = None
41+
"""The ID of the zone this alarm is associated with"""
42+
43+
stream_id: Optional[int] = None
44+
"""The ID of the stream the associated zone is in"""
45+
4646
def to_dict(self):
4747
d = dict(self.__dict__)
4848
d["count_conditions"] = [ZoneAlarmCountCondition.to_dict(cond)

0 commit comments

Comments
 (0)