philklei / tahoma-api

API for Tahoma
Apache License 2.0
30 stars 13 forks source link

ActionGroup object might not contain lastUpdateTime attribute #10

Closed ikucuze closed 6 years ago

ikucuze commented 6 years ago

on init method of ActionGroup, lastUpdateTime attribute is fetch: self.__last_update = data['lastUpdateTime']

This attribute might not be present (maybe on old tahoma setups), which breaks the entire call.

ikucuze commented 6 years ago

Workaround : direct request to API url and json reading allows to find the action group without the atttribute. Updating them from tahoma native interface fixes it.