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, year=0, month=0, minutes=0):
CompositeType.__init__(self)
self.year = Year2k(year-PLUGWISE_EPOCH, 2)
self.month = Int(month, 2)
self.minutes = Int(minutes, 4)
self.contents += [self.year, self.month, self.minutes]
def __init__(self, hour=0, minute=0, second=0):
CompositeType.__init__(self)
self.hour = Int(hour, 2)
self.minute = Int(minute, 2)
self.second = Int(second, 2)
self.contents += [self.hour, self.minute, self.second]
def __init__(self, day=0, month=0, year=0):
CompositeType.__init__(self)
self.day = StringVal(day, 2)
self.month = StringVal(month, 2)
self.year = StringVal(year, 2)
self.contents += [self.day, self.month, self.year]
def __init__(self, second=0, minute=0, hour=0):
CompositeType.__init__(self)
self.second = StringVal(second, 2)
self.minute = StringVal(minute, 2)
self.hour = StringVal(hour, 2)
self.contents += [self.second, self.minute, self.hour]