Bump bimmer_connected to 0.7.15 and fix bugs (#47066)

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
This commit is contained in:
rikroe 2021-02-26 13:57:47 +01:00 committed by GitHub
parent 56673f7edf
commit 9c67f83f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -122,7 +122,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
def _update_all() -> None: def _update_all() -> None:
"""Update all BMW accounts.""" """Update all BMW accounts."""
for entry in hass.data[DOMAIN][DATA_ENTRIES].values(): for entry in hass.data[DOMAIN][DATA_ENTRIES].copy().values():
entry[CONF_ACCOUNT].update() entry[CONF_ACCOUNT].update()
# Add update listener for config entry changes (options) # Add update listener for config entry changes (options)

View File

@ -42,12 +42,12 @@ class BMWDeviceTracker(BMWConnectedDriveBaseEntity, TrackerEntity):
@property @property
def latitude(self): def latitude(self):
"""Return latitude value of the device.""" """Return latitude value of the device."""
return self._location[0] return self._location[0] if self._location else None
@property @property
def longitude(self): def longitude(self):
"""Return longitude value of the device.""" """Return longitude value of the device."""
return self._location[1] return self._location[1] if self._location else None
@property @property
def name(self): def name(self):

View File

@ -2,7 +2,7 @@
"domain": "bmw_connected_drive", "domain": "bmw_connected_drive",
"name": "BMW Connected Drive", "name": "BMW Connected Drive",
"documentation": "https://www.home-assistant.io/integrations/bmw_connected_drive", "documentation": "https://www.home-assistant.io/integrations/bmw_connected_drive",
"requirements": ["bimmer_connected==0.7.14"], "requirements": ["bimmer_connected==0.7.15"],
"codeowners": ["@gerard33", "@rikroe"], "codeowners": ["@gerard33", "@rikroe"],
"config_flow": true "config_flow": true
} }

View File

@ -343,7 +343,7 @@ beautifulsoup4==4.9.3
bellows==0.21.0 bellows==0.21.0
# homeassistant.components.bmw_connected_drive # homeassistant.components.bmw_connected_drive
bimmer_connected==0.7.14 bimmer_connected==0.7.15
# homeassistant.components.bizkaibus # homeassistant.components.bizkaibus
bizkaibus==0.1.1 bizkaibus==0.1.1

View File

@ -196,7 +196,7 @@ base36==0.1.1
bellows==0.21.0 bellows==0.21.0
# homeassistant.components.bmw_connected_drive # homeassistant.components.bmw_connected_drive
bimmer_connected==0.7.14 bimmer_connected==0.7.15
# homeassistant.components.blebox # homeassistant.components.blebox
blebox_uniapi==1.3.2 blebox_uniapi==1.3.2