Bump pygti and change the request for the new api version (#92283)

Bump pygti and change request for the new api version
This commit is contained in:
Tom Schneider 2023-05-24 12:43:36 +02:00 committed by GitHub
parent 2a7ba60574
commit 0ca0ed3a31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 5 deletions

View file

@ -88,7 +88,7 @@ async def async_setup_entry(
so entities can quickly look up their data.
"""
payload = {"station": station}
payload = {"station": {"id": station["id"], "type": station["type"]}}
try:
async with async_timeout.timeout(10):

View file

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/hvv_departures",
"iot_class": "cloud_polling",
"loggers": ["pygti"],
"requirements": ["pygti==0.9.3"]
"requirements": ["pygti==0.9.4"]
}

View file

@ -84,8 +84,10 @@ class HVVDepartureSensor(SensorEntity):
departure_time_tz_berlin = departure_time.astimezone(BERLIN_TIME_ZONE)
station = self.config_entry.data[CONF_STATION]
payload = {
"station": self.config_entry.data[CONF_STATION],
"station": {"id": station["id"], "type": station["type"]},
"time": {
"date": departure_time_tz_berlin.strftime("%d.%m.%Y"),
"time": departure_time_tz_berlin.strftime("%H:%M"),

View file

@ -1671,7 +1671,7 @@ pygatt[GATTTOOL]==4.0.5
pygtfs==0.1.7
# homeassistant.components.hvv_departures
pygti==0.9.3
pygti==0.9.4
# homeassistant.components.version
pyhaversion==22.8.0

View file

@ -1226,7 +1226,7 @@ pyfronius==0.7.1
pyfttt==0.3
# homeassistant.components.hvv_departures
pygti==0.9.3
pygti==0.9.4
# homeassistant.components.version
pyhaversion==22.8.0