Update to new "b2vapi" of BMW ConnectedDrive (#13305)
* updated to new "b2vapi" of bimmer_connected * updated requirements_all.txt * updated 2 more vehicle names after rebase * cleanup of import statements * found one more broken name... * removed unused constant * cleanup of import statements 2
This commit is contained in:
1 parent
8bd5f66c57
commit
4d52875229
6 files changed
+44
-37
No files matched your search
@@ -37,15 +37,15 @@ class BMWDeviceTracker(object):
|
||||
|
||||
def update(self) -> None:
|
||||
"""Update the device info."""
|
||||
dev_id = slugify(self.vehicle.modelName)
|
||||
dev_id = slugify(self.vehicle.name)
|
||||
_LOGGER.debug('Updating %s', dev_id)
|
||||
attrs = {
|
||||
'trackr_id': dev_id,
|
||||
'id': dev_id,
|
||||
'name': self.vehicle.modelName
|
||||
'name': self.vehicle.name
|
||||
}
|
||||
self._see(
|
||||
dev_id=dev_id, host_name=self.vehicle.modelName,
|
||||
dev_id=dev_id, host_name=self.vehicle.name,
|
||||
gps=self.vehicle.state.gps_position, attributes=attrs,
|
||||
icon='mdi:car'
|
||||
)
|
||||
Reference in new issue
Block a user