From 573320a0b414704ff2e26f4b69faa84a51403c92 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 29 Nov 2022 19:52:49 +0100 Subject: [PATCH] Add country to detect location info (#82941) --- homeassistant/components/config/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/config/core.py b/homeassistant/components/config/core.py index 975cfc590e8..43bce39082d 100644 --- a/homeassistant/components/config/core.py +++ b/homeassistant/components/config/core.py @@ -110,4 +110,7 @@ async def websocket_detect_config( if location_info.currency: info["currency"] = location_info.currency + if location_info.country_code: + info["country"] = location_info.country_code + connection.send_result(msg["id"], info)