Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verisure configurable polling #17144

Merged
merged 1 commit into from
Oct 4, 2018
Merged

verisure configurable polling #17144

merged 1 commit into from
Oct 4, 2018

Conversation

persandstrom
Copy link
Contributor

@persandstrom persandstrom commented Oct 4, 2018

Description:

Some users have received mail from Verisure informing them to poll less.

Related issue (if applicable): fixes #

Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>

Example entry for configuration.yaml (if applicable):

verisure:                                                                        
  username: ****
  password: ****
  polling_rate: 2    

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

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

If
[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L54

@ghost ghost assigned persandstrom Oct 4, 2018
@ghost ghost added the in progress label Oct 4, 2018
persandstrom added a commit to home-assistant/home-assistant.io that referenced this pull request Oct 4, 2018
@persandstrom persandstrom merged commit b55c7a5 into home-assistant:dev Oct 4, 2018
@ghost ghost removed the in progress label Oct 4, 2018
@@ -53,6 +54,8 @@
vol.Optional(CONF_SMARTPLUGS, default=True): cv.boolean,
vol.Optional(CONF_THERMOMETERS, default=True): cv.boolean,
vol.Optional(CONF_SMARTCAM, default=True): cv.boolean,
vol.Optional(CONF_POLLING_RATE, default=1): vol.All(
vol.Coerce(int), vol.Range(min=1)),
Copy link
Member

Choose a reason for hiding this comment

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

We usually use cv.time_period.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would allow the user to set seconds, right? Verisure seems to lock people out that poll too often so I rather see that a minute is minimum.

Copy link
Member

Choose a reason for hiding this comment

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

We can set a minimum time too.

@@ -53,6 +54,8 @@
vol.Optional(CONF_SMARTPLUGS, default=True): cv.boolean,
vol.Optional(CONF_THERMOMETERS, default=True): cv.boolean,
vol.Optional(CONF_SMARTCAM, default=True): cv.boolean,
vol.Optional(CONF_POLLING_RATE, default=1): vol.All(
Copy link
Member

Choose a reason for hiding this comment

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

Normally we call this CONF_SCAN_INTERVAL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. I should change that. When is the next release?

Copy link
Member

Choose a reason for hiding this comment

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

In ~7 days.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great., I will be able to update during the weekend. Thanks @MartinHjelmare

@balloob balloob mentioned this pull request Oct 12, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants