Skip to content

Commit ca975f9

Browse files
committed
chore: remote config
1 parent 12bca82 commit ca975f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom_components/optispark/backend/location/location_service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def add_location(self, request: LocationRequest, access_token: str) -> Loc
6363

6464
async def get_locations(self, access_token: str) -> [LocationResponse]:
6565
"""Get locations from OptiSpark backend"""
66-
location_url = f'{self._base_url}/{config_service.get("backend.location.base")}'
66+
location_url = f'{self._base_url}/{config_service.get("backend.location.base")}/'
6767
headers = {
6868
"Authorization": f"Bearer {access_token}"
6969
}

custom_components/optispark/config/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"hoursFromNow": 24,
33
"backend": {
4-
"baseUrl": "http://localhost:5000",
4+
"baseUrl": "https://ec2-18-135-1A3-142.eu-west-2.compute.amazonaws.com",
55
"verifySSL": false,
66
"location": {
77
"base": "location"

0 commit comments

Comments
 (0)