Moved conversation from the thread, since it's closed now.
@honest depot when you have a minute, could you briefly check my questions please?
- In your PR (https://github.com/home-assistant/core/pull/118995, closed now) you change async_get_area_by_name function. But as i see nowhere in HA repo this method is actually used with aliases... Does it mean that some other code is using it outside of HA_core, and changing this method will be enough? Where's it used in Assist, so i could check?
- I saw you taking just first result in that for-loop. That means, if two areas have duplicated aliases (it's possible, i tried), then only first one in registry list will be always returned. Shouldn't we change this behaviour, and, say, throw error if there's more than one area with given alias? I understand that it could break some places, so probably we leave this method alone, and use new one get_areas_for_alias, similar to get_areas_for_label, and treat its multiple output in caller?
- Do you want me to add same functionality for Floors? If so, the questions 1 and 2 will be the same.