Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def now_is_between(self, start_time_str, end_time_str):
return utils.now_is_between(start_time_str, end_time_str, self.name)
def _get_max_brightness_ambient_lights():
if utils.now_is_between('09:00:00', '19:00:00'):
return 200
elif utils.now_is_between('19:00:00', '22:00:00'):
return 150
elif utils.now_is_between('22:00:00', '04:00:00'):
return 75
return 25
def _get_max_brightness_ambient_lights():
if utils.now_is_between('09:00:00', '19:00:00'):
return 200
elif utils.now_is_between('19:00:00', '22:00:00'):
return 150
elif utils.now_is_between('22:00:00', '04:00:00'):
return 75
return 25
def _get_max_brightness_ambient_lights():
if utils.now_is_between('09:00:00', '19:00:00'):
return 200
elif utils.now_is_between('19:00:00', '22:00:00'):
return 150
elif utils.now_is_between('22:00:00', '04:00:00'):
return 75
return 25