def closest_filter(hass, *args):
    'Call closest as a filter. Need to reorder arguments.'
    new_args = list(args[1:])
    new_args.append(args[0])
    return closest(hass, *new_args)
Call closest as a filter. Need to reorder arguments.
def closest_filter(hass, *args):
    
    new_args = list(args[1:])
    new_args.append(args[0])
    return closest(hass, *new_args)