Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, seqnr = None):
PlugwiseResponse.__init__(self, seqnr)
self.raw = String(None, length=64)
self.logaddr = LogAddr(0, length=8)
self.params += [self.raw, self.logaddr
]
def __init__(self, seqnr = None):
PlugwiseResponse.__init__(self, seqnr)
self.datetime = DateTime()
self.last_logaddr = LogAddr(0, length=8)
self.relay_state = Int(0, length=2)
self.hz = Int(0, length=2)
self.hw_ver = String(None, length=12)
self.fw_ver = UnixTimestamp(0)
self.type = Int(0, length=2)
self.params += [
self.datetime,
self.last_logaddr, self.relay_state,
self.hz, self.hw_ver, self.fw_ver, self.type
]
def __init__(self, mac, log_address):
PlugwiseRequest.__init__(self, mac)
self.args.append(LogAddr(log_address, 8))