Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def unserialize(self, val):
Int.unserialize(self, val)
self.value = (self.value - self.LOGADDR_OFFSET) // 32
def unserialize(self, val):
Int.unserialize(self, val)
self.value += PLUGWISE_EPOCH
def unserialize(self, val):
Int.unserialize(self, val)
self.value = datetime.datetime.fromtimestamp(self.value)