Bump bimmer_connected to 0.16.1 (#122699)

Co-authored-by: Richard <rikroe@users.noreply.github.com>
This commit is contained in:
Richard Kroegel 2024-07-29 12:02:47 +02:00 committed by GitHub
parent d586e7df33
commit 745eea9a29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 802 additions and 711 deletions

View File

@ -7,5 +7,5 @@
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["bimmer_connected"], "loggers": ["bimmer_connected"],
"quality_scale": "platinum", "quality_scale": "platinum",
"requirements": ["bimmer-connected[china]==0.15.3"] "requirements": ["bimmer-connected[china]==0.16.1"]
} }

View File

@ -86,7 +86,8 @@
"name": "Charging Mode", "name": "Charging Mode",
"state": { "state": {
"immediate_charging": "Immediate charging", "immediate_charging": "Immediate charging",
"delayed_charging": "Delayed charging" "delayed_charging": "Delayed charging",
"no_action": "No action"
} }
} }
}, },

View File

@ -556,7 +556,7 @@ beautifulsoup4==4.12.3
# beewi-smartclim==0.0.10 # beewi-smartclim==0.0.10
# homeassistant.components.bmw_connected_drive # homeassistant.components.bmw_connected_drive
bimmer-connected[china]==0.15.3 bimmer-connected[china]==0.16.1
# homeassistant.components.bizkaibus # homeassistant.components.bizkaibus
bizkaibus==0.1.1 bizkaibus==0.1.1

View File

@ -490,7 +490,7 @@ base36==0.1.1
beautifulsoup4==4.12.3 beautifulsoup4==4.12.3
# homeassistant.components.bmw_connected_drive # homeassistant.components.bmw_connected_drive
bimmer-connected[china]==0.15.3 bimmer-connected[china]==0.16.1
# homeassistant.components.eq3btsmart # homeassistant.components.eq3btsmart
# homeassistant.components.esphome # homeassistant.components.esphome

View File

@ -1,7 +1,7 @@
"""Tests for the for the BMW Connected Drive integration.""" """Tests for the for the BMW Connected Drive integration."""
from bimmer_connected.const import ( from bimmer_connected.const import (
REMOTE_SERVICE_BASE_URL, REMOTE_SERVICE_V4_BASE_URL,
VEHICLE_CHARGING_BASE_URL, VEHICLE_CHARGING_BASE_URL,
VEHICLE_POI_URL, VEHICLE_POI_URL,
) )
@ -71,11 +71,11 @@ def check_remote_service_call(
first_remote_service_call: respx.models.Call = next( first_remote_service_call: respx.models.Call = next(
c c
for c in router.calls for c in router.calls
if c.request.url.path.startswith(REMOTE_SERVICE_BASE_URL) if c.request.url.path.startswith(REMOTE_SERVICE_V4_BASE_URL)
or c.request.url.path.startswith( or c.request.url.path.startswith(
VEHICLE_CHARGING_BASE_URL.replace("/{vin}", "") VEHICLE_CHARGING_BASE_URL.replace("/{vin}", "")
) )
or c.request.url.path == VEHICLE_POI_URL or c.request.url.path.endswith(VEHICLE_POI_URL.rsplit("/", maxsplit=1)[-1])
) )
assert ( assert (
first_remote_service_call.request.url.path.endswith(remote_service) is True first_remote_service_call.request.url.path.endswith(remote_service) is True

View File

@ -8,6 +8,7 @@
'options': list([ 'options': list([
'immediate_charging', 'immediate_charging',
'delayed_charging', 'delayed_charging',
'no_action',
]), ]),
}), }),
'config_entry_id': <ANY>, 'config_entry_id': <ANY>,
@ -44,6 +45,7 @@
'options': list([ 'options': list([
'immediate_charging', 'immediate_charging',
'delayed_charging', 'delayed_charging',
'no_action',
]), ]),
}), }),
'context': <ANY>, 'context': <ANY>,
@ -141,6 +143,7 @@
'options': list([ 'options': list([
'immediate_charging', 'immediate_charging',
'delayed_charging', 'delayed_charging',
'no_action',
]), ]),
}), }),
'config_entry_id': <ANY>, 'config_entry_id': <ANY>,
@ -177,6 +180,7 @@
'options': list([ 'options': list([
'immediate_charging', 'immediate_charging',
'delayed_charging', 'delayed_charging',
'no_action',
]), ]),
}), }),
'context': <ANY>, 'context': <ANY>,
@ -274,6 +278,7 @@
'options': list([ 'options': list([
'immediate_charging', 'immediate_charging',
'delayed_charging', 'delayed_charging',
'no_action',
]), ]),
}), }),
'config_entry_id': <ANY>, 'config_entry_id': <ANY>,
@ -310,6 +315,7 @@
'options': list([ 'options': list([
'immediate_charging', 'immediate_charging',
'delayed_charging', 'delayed_charging',
'no_action',
]), ]),
}), }),
'context': <ANY>, 'context': <ANY>,