def _load_json(filename):
    'Wrapper, because we actually want to handle invalid json.'
    try:
        return load_json(filename)
    except HomeAssistantError:
        pass
    return {}
Wrapper, because we actually want to handle invalid json.
def _load_json(filename):
    
    try:
        return load_json(filename)
    except HomeAssistantError:
        pass
    return {}