Skip to content

Add mychevy optional country parameter#19727

Merged
cgarwood merged 2 commits into
home-assistant:devfrom
sdague:mychevy_ca
Jan 4, 2019
Merged

Add mychevy optional country parameter#19727
cgarwood merged 2 commits into
home-assistant:devfrom
sdague:mychevy_ca

Conversation

@sdague
Copy link
Copy Markdown
Contributor

@sdague sdague commented Jan 2, 2019

mychevy 1.2.0 provides the ability to work in canada as well as the us
(there are different service urls for each region). This creates a new
config option to enable it.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

@ghost ghost assigned sdague Jan 2, 2019
@ghost ghost added the in progress label Jan 2, 2019
Comment thread homeassistant/components/mychevy.py Outdated
DOMAIN: vol.Schema({
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
vol.Optional(CONF_COUNTRY, default="us"): cv.string
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vol.All(cv.string, vol.In(['us', 'ca']))?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I was wondering how to do that.

mychevy 1.2.0 provides the ability to work in canada as well as the us
(there are different service urls for each region). This creates a new
config option to enable it.
@frenck
Copy link
Copy Markdown
Member

frenck commented Jan 3, 2019

Could not find a matching documentation PR in our documentation repository. Adding docs-missing label.

@sdague
Copy link
Copy Markdown
Contributor Author

sdague commented Jan 3, 2019

Docs are now added

@ghost ghost assigned pvizeli Jan 3, 2019
@MartinHjelmare MartinHjelmare changed the title Add optional country parameter Add mychevy optional country parameter Jan 3, 2019
@cgarwood cgarwood merged commit 03488af into home-assistant:dev Jan 4, 2019
@ghost ghost removed the in progress label Jan 4, 2019
@balloob balloob mentioned this pull request Jan 10, 2019
alandtse pushed a commit to alandtse/home-assistant that referenced this pull request Feb 12, 2019
* Add optional country parameter

mychevy 1.2.0 provides the ability to work in canada as well as the us
(there are different service urls for each region). This creates a new
config option to enable it.

* Update mychevy.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants