From 97602a127adc0ef138842212f9bea956e83786cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hjelseth=20H=C3=B8yer?= Date: Wed, 2 Sep 2020 20:56:23 +0200 Subject: [PATCH] Reintroduce custom met.no url (#39583) --- homeassistant/components/met/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/met/__init__.py b/homeassistant/components/met/__init__.py index 4eedfc0b76d..5a357467920 100644 --- a/homeassistant/components/met/__init__.py +++ b/homeassistant/components/met/__init__.py @@ -22,6 +22,9 @@ import homeassistant.util.dt as dt_util from .const import CONF_TRACK_HOME, DOMAIN +URL = "https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete" + + _LOGGER = logging.getLogger(__name__) @@ -139,7 +142,7 @@ class MetWeatherData: } self._weather_data = metno.MetWeatherData( - coordinates, async_get_clientsession(self.hass) + coordinates, async_get_clientsession(self.hass), api_url=URL ) async def fetch_data(self):