Skip to content

Commit

Permalink
Bump bimmer_connected to 0.7.15 and fix bugs (home-assistant#47066)
Browse files Browse the repository at this point in the history
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
  • Loading branch information
rikroe and rikroe authored Feb 26, 2021
1 parent 56673f7 commit 9c67f83
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/bmw_connected_drive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def _async_update_all(service_call=None):

def _update_all() -> None:
"""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()

# Add update listener for config entry changes (options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ def __init__(self, account, vehicle):
@property
def latitude(self):
"""Return latitude value of the device."""
return self._location[0]
return self._location[0] if self._location else None

@property
def longitude(self):
"""Return longitude value of the device."""
return self._location[1]
return self._location[1] if self._location else None

@property
def name(self):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/bmw_connected_drive/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"domain": "bmw_connected_drive",
"name": "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"],
"config_flow": true
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ beautifulsoup4==4.9.3
bellows==0.21.0

# homeassistant.components.bmw_connected_drive
bimmer_connected==0.7.14
bimmer_connected==0.7.15

# homeassistant.components.bizkaibus
bizkaibus==0.1.1
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ base36==0.1.1
bellows==0.21.0

# homeassistant.components.bmw_connected_drive
bimmer_connected==0.7.14
bimmer_connected==0.7.15

# homeassistant.components.blebox
blebox_uniapi==1.3.2
Expand Down

0 comments on commit 9c67f83

Please sign in to comment.