Skip to content

Commit ad714d5

Browse files
committed
fix: EventSummary.source has an optional href not optional itself
1 parent 6cef9e7 commit ad714d5

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

gallagher/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""" Gallagher Python idiomatic client
22
3-
Copyright (c) 2023, Anomaly Software Pty Ltd
3+
Copyright (c) 2025, Anomaly Software Pty Ltd
44
55
This project is **NOT** officially affiliated with Gallagher Security.
66
77
Distributed under the terms of the MIT License.
88
"""
99

10-
__version__ = "0.1.0-alpha.8"
10+
__version__ = "0.1.0-alpha.9"

gallagher/dto/ref/items.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from ..utils import AppBaseModel, HrefMixin
1+
from ..utils import AppBaseModel, OptionalHrefMixin
22

33

4-
class ItemRef(AppBaseModel, HrefMixin):
4+
class ItemRef(AppBaseModel, OptionalHrefMixin):
55
"""Reference to an ItemType"""
66

77
name: str

gallagher/dto/summary/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class EventSummary(
6666
alarm: Optional[AlarmRef] = None
6767

6868
operator: Optional[CardholderRef] = None
69-
source: Optional[ItemRef] = None
69+
source: ItemRef
7070
group: Optional[EventGroupRef] = None
7171
type: Optional[EventTypeSummary] = None
7272
event_type: Optional[EventTypeSummary] = None

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gallagher"
3-
version = "0.1.0-alpha.8"
3+
version = "0.1.0-alpha.9"
44
description = "The missing developer toolkit for Gallagher Command Centre"
55
authors = ["Dev Mukherjee <[email protected]>"]
66
readme = "README.md"
@@ -59,7 +59,7 @@ tqdm = "^4.66.4"
5959

6060
pygments = "^2.18.0"
6161
mkdocstrings = "^0.29.0"
62-
mkdocs-material = {version = "^9.5.46", extras = ["imaging"]}
62+
mkdocs-material = { version = "^9.5.46", extras = ["imaging"] }
6363
[tool.poetry.group.cli.dependencies]
6464
asyncer = "^0.0.8"
6565
typer = "^0.15.1"

tests/test_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66

77
async def test_version():
8-
assert __version__ == "0.1.0-alpha.8"
8+
assert __version__ == "0.1.0-alpha.9"

0 commit comments

Comments
 (0)