Add services for bmw_connected_drive (#13497)

* implemented services for bmw remote services

* added vin to attributes of tracker
* moved component to new package
* added service description

* fixed static analysis warnings

* implemented first set of code reviews

* removed locking related services

* fixed static analysis warnings

* removed excess blank lines

* refactoring of setup() to resolve warning
"Cell variable bimmer defined in loop (cell-var-from-loop)"

* added missing docstring

* added service to update all vehicles from the server

* implemented changes requested in code review

* added check if invalid vin is entered
This commit is contained in:
ChristianKuehnel authored and Martin Hjelmare committed 2018-04-17 17:37:00 +02:00
1 parent 783e9a5f8c
commit e472436b84
3 files changed
+113 -21

No files matched your search

@@ -48,8 +48,11 @@ class BMWDeviceTracker(object):
return
_LOGGER.debug('Updating %s', dev_id)
attrs = {
'vin': self.vehicle.vin,
}
self._see(
dev_id=dev_id, host_name=self.vehicle.name,
gps=self.vehicle.state.gps_position, icon='mdi:car'
gps=self.vehicle.state.gps_position, attributes=attrs,
icon='mdi:car'
)