Skip to content

Rachio update#7922

Closed
Klikini wants to merge 90 commits into
home-assistant:devfrom
Klikini:dev
Closed

Rachio update#7922
Klikini wants to merge 90 commits into
home-assistant:devfrom
Klikini:dev

Conversation

@Klikini
Copy link
Copy Markdown
Contributor

@Klikini Klikini commented Jun 5, 2017

Description:

Update to #7600

Checklist:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

@balloob
Copy link
Copy Markdown
Member

balloob commented Jun 6, 2017

Please create a new branch instead of reusing your old branch.

DEFAULT_MANUAL_RUN_MINS = 10

MIN_UPDATE_INTERVAL = timedelta(minutes=5)
MIN_UPDATE_INTERVAL = timedelta(seconds=5)
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.

?

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.

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.

Rachio offers an API for free but hitting it every 5 seconds is going to get us banned.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@balloob, I've been running mine with a 30 second interval and it seems to have the same desired effect, in that regardless of 5 or 30 seconds it updates the correct state on the frontend after about 30 seconds have passed. Do you think leaving timedelta at 30 seconds would be acceptable to not overload the API?



# noinspection PyUnusedLocal
# noinspection PyUnresolvedLocal
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.

Please remove these warnings. They are not part of linters that the project uses.

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.

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.

I don't understand this comment.

fabaff and others added 10 commits June 11, 2017 21:40
* Additional demo fan with only speed support

* Update demo fan tests
* add mailgun component

* add to coveragerc
…ipt (#7928)

* fixing potential null issue with optional param being parsed as a script

* Create template.py
* Make it more flexible (fixes #7954)

* Fix var name
* Add Flexit AC climate platform

* Protocol extracted to third party lib
@balloob
Copy link
Copy Markdown
Member

balloob commented Jun 13, 2017

Please base your changes off a new copy of the dev branch. It now includes a lot of commits that are not part of this changeset.

mjsir911 and others added 5 commits June 12, 2017 23:34
* - Simple keyword to action config

* - Added more fuzzy stuff

* - Logging & a bit of commenting

* - pep8?

* - pep8 and quick formatting fixes

* - Changed configuration a bit

* - Backwards compatibility tests

* - Fallback or

* - Added custom configuration for conversation

* - Moved imports inside function

* - pep8

* - Pass tests better

* - Removed unused imports

* - Moved warning ignore to above import for fuzzy

* - Moved return for consistent return types

* - Fallback if no choices to listen for

* - Fixed linting errors

* - Better logging and fixed linting errors(?)

* - Fixed continuation

* - Added one blank line after class docstring

* Create conversation.py

* Create test_conversation.py

* Create test_conversation.py

* Update test_conversation.py
* entity id is optional

* use a simple if/else to set the data for the fan.turn_off service
"""Stop all zones."""
_LOGGER.info("Stopping watering of all zones")
self.rachio.device.stopWater(self._device.device_id)
self.rachio.device.stopWater(self._device.device_id) No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

no newline at end of file

@balloob
Copy link
Copy Markdown
Member

balloob commented Jun 19, 2017

Please create a new PR based off a new branch forked off our dev branch.

@balloob balloob closed this Jun 19, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Oct 20, 2017
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.