diff --git a/spond/spond.py b/spond/spond.py index a5431ef..e24f7ab 100644 --- a/spond/spond.py +++ b/spond/spond.py @@ -350,12 +350,7 @@ async def update_event(self, uid: str, updates: JSONDict): json results of post command """ - if not self.events: - await self.get_events() - for event in self.events: - if event["id"] == uid: - break - + event = await self._get_entity(self._EVENT, uid) url = f"{self.api_url}sponds/{uid}" base_event: JSONDict = {