Source code for homematicip.access_point_update_state

from homematicip.base.homematicip_object import HomeMaticIPObject
from homematicip.base.enums import DeviceUpdateState


[docs] class AccessPointUpdateState(HomeMaticIPObject): def __init__(self, connection): super().__init__(connection) self.accessPointUpdateState = DeviceUpdateState.UP_TO_DATE self.successfulUpdateTimestamp = None self.updateStateChangedTimestamp = None
[docs] def from_json(self, js): self.accessPointUpdateState = js["accessPointUpdateState"] self.successfulUpdateTimestamp = self.fromtimestamp( js["successfulUpdateTimestamp"] ) self.updateStateChangedTimestamp = self.fromtimestamp( js["updateStateChangedTimestamp"] )