BMW Connected drive: option to disable the services#15993
BMW Connected drive: option to disable the services#15993balloob merged 12 commits intohome-assistant:devfrom Alexxander0:dev
Conversation
|
Hi @Alexxander0, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
| enable_services = account_config[CONF_ENABLE_SERVICES] | ||
| _LOGGER.debug('Adding new account %s', name) | ||
| cd_account = BMWConnectedDriveAccount(username, password, region, name) | ||
| cd_account = BMWConnectedDriveAccount(username, password, region, name,enable_services) |
There was a problem hiding this comment.
missing whitespace after ','
line too long (91 > 79 characters)
| enable_services = account_config[CONF_ENABLE_SERVICES] | ||
| _LOGGER.debug('Adding new account %s', name) | ||
| cd_account = BMWConnectedDriveAccount(username, password, region, name) | ||
| cd_account = BMWConnectedDriveAccount(username, password, region, name, enable_services) |
There was a problem hiding this comment.
line too long (92 > 79 characters)
| _LOGGER.debug('Adding new account %s', name) | ||
| cd_account = BMWConnectedDriveAccount(username, password, region, name) | ||
| cd_account = BMWConnectedDriveAccount(username, password, region, name, | ||
| enable_services) |
There was a problem hiding this comment.
continuation line under-indented for visual indent
| enable_services = account_config[CONF_ENABLE_SERVICES] | ||
| _LOGGER.debug('Adding new account %s', name) | ||
| cd_account = BMWConnectedDriveAccount(username, password, region, name) | ||
| cd_account = BMWConnectedDriveAccount(username, password, region, name, |
|
|
||
| DOMAIN = 'bmw_connected_drive' | ||
| CONF_REGION = 'region' | ||
| CONF_ENABLE_SERVICES = 'services' |
There was a problem hiding this comment.
Can you rename the option to read_only and default it to False
There was a problem hiding this comment.
do you mean CONF_READ_ONLY = 'services' ? This wouldnt make it consistent, because there is always a negation needed. I could do CONF_READ_ONLY = 'services_disabled' and set the default to false ?
Or CONF_READ_ONLY = 'read_only'
…5993) * Update __init__.py * Update bmw_connected_drive.py * Update __init__.py * Update bmw_connected_drive.py * Update __init__.py * Update __init__.py * Update __init__.py * Update __init__.py * Update __init__.py * Update __init__.py * Update __init__.py * Update bmw_connected_drive.py
Description:
I dont want to expose the services of my car to HA. The services"light turn on", "unlock" etc. should be disabled for security reasons. This PR adds an option to disable the services and lock
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#6024
Example entry for
configuration.yaml(if applicable):Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTSvariable (example).requirements_all.txtby runningscript/gen_requirements_all.py..coveragerc.If the code does not interact with devices: