From 03ceebbdd4cd2dccd3a0e382b1def16cb3a9e7ed Mon Sep 17 00:00:00 2001 From: David Audet Date: Tue, 19 Apr 2022 16:39:40 -0400 Subject: [PATCH] Change host for the caching api --- custom_components/formulaone_api/manifest.json | 2 +- custom_components/formulaone_api/sensor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/formulaone_api/manifest.json b/custom_components/formulaone_api/manifest.json index 77af794..7b04580 100644 --- a/custom_components/formulaone_api/manifest.json +++ b/custom_components/formulaone_api/manifest.json @@ -1,6 +1,6 @@ { "domain": "formulaone_api", - "version": "0.1.3", + "version": "0.1.4", "name": "Formula One API", "documentation": "https://github.com/delzear/hass-formulaoneapi", "dependencies": [], diff --git a/custom_components/formulaone_api/sensor.py b/custom_components/formulaone_api/sensor.py index 7e02162..9c2f0f0 100644 --- a/custom_components/formulaone_api/sensor.py +++ b/custom_components/formulaone_api/sensor.py @@ -128,7 +128,7 @@ def random(self, **kwargs): return choice(**kwargs) def _build_url(self, path, **kwargs) -> str: - url = "{protocol}://ergastcache.husky-technologies.com/f1/{path}".format( + url = "{protocol}://ergastcache.mobiusmedia.ca/f1/{path}".format( protocol="http" if self.secure else "http", path=path.format(**kwargs) ) return url