Skip to content

Commit a2cda7a

Browse files
Merge pull request #16 from DavidBilodeau1/DavidBilodeau1-patch-1
Changed api calls that changed
2 parents d2158b2 + 5589331 commit a2cda7a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

custom_components/saguenay_collection/config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def async_step_street(self, user_input=None):
6969
@staticmethod
7070
def _fetch_streets(city_id, civic_number):
7171
response = requests.post(
72-
f"{BASE_URL}/getrues",
72+
f"{BASE_URL}/rues",
7373
data={"no_civique": civic_number, "no_ville": city_id},
7474
timeout=15,
7575
)
@@ -79,7 +79,7 @@ def _fetch_streets(city_id, civic_number):
7979
@staticmethod
8080
def _fetch_schedule_ids(street_id):
8181
response = requests.post(
82-
f"{BASE_URL}/getcollecteinfo",
82+
f"{BASE_URL}/collecteinfos",
8383
data={"ide": street_id},
8484
timeout=15,
8585
)

custom_components/saguenay_collection/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def fetch_data():
4848

4949
_LOGGER.debug("Fetching data for schedule: %s with horaire_id: %s", schedule_type, horaire_id)
5050
response = requests.post(
51-
f"{BASE_URL}/getcedule",
51+
f"{BASE_URL}/cedule",
5252
data={"horaire_id": horaire_id},
5353
timeout=15,
5454
)

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "Saguenay Waste Collection Schedule",
33
"render_readme": true,
4-
"homeassistant": "2024.11.0"
4+
"homeassistant": "2025.8.0"
55
}

0 commit comments

Comments
 (0)