def generate_entity_id(entity_id_format: str, name: (str | None), current_ids: (list[str] | None)=None, hass: (HomeAssistant | None)=None) -> str:
    'Generate a unique entity ID based on given entity IDs or used IDs.'
    return async_generate_entity_id(entity_id_format, name, current_ids, hass)
Generate a unique entity ID based on given entity IDs or used IDs.
def generate_entity_id(entity_id_format: str, name: (str | None), current_ids: (list[str] | None)=None, hass: (HomeAssistant | None)=None) -> str:
    
    return async_generate_entity_id(entity_id_format, name, current_ids, hass)