Skip to content

Commit c810fc0

Browse files
implement spot leash resources for missing status/leases (#174)
Co-authored-by: Fabian Zillenbiller <f.zillenbiller@reply.de>
1 parent 9eb2b3c commit c810fc0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spot_wrapper/spot_leash.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ def __init__(
131131
def lease(self) -> Optional[Lease]:
132132
return self._lease
133133

134+
@property
135+
def resources(self) -> list[lease_pb2.LeaseResource]:
136+
return list(getattr(self._lease_task, "proto", []) or [])
137+
134138
@property
135139
def async_tasks(self) -> List[AsyncPeriodicQuery]:
136140
return [self._lease_task]

0 commit comments

Comments
 (0)