-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Update Roomba to new STATE API #15779
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
Conversation
yield from self.async_resume() | ||
if self.state == STATE_CLEANING: # vacuum is running | ||
await self.async_pause() | ||
elif self.state == STATE_PAUSED: # self._status == 'Stopped': # vacuum is stopped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (91 > 79 characters)
"""Pause the cleaning cycle.""" | ||
yield from self.hass.async_add_job(self.vacuum.send_command, 'pause') | ||
# TODO: What happens here if in DOCKED, PAUSED, IDLE, RETURNING, or ERROR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (82 > 79 characters)
"""Resume the cleaning cycle.""" | ||
yield from self.hass.async_add_job(self.vacuum.send_command, 'resume') | ||
# TODO: What happens here if in CLEANING, DOCKED, IDLE, RETURNING, or ERROR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (84 > 79 characters)
} | ||
|
||
|
||
async def async_setup_platform(hass, config, async_add_devices, discovery_info=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (85 > 79 characters)
Part of: home-assistant/architecture#29 |
Does it make sense to merge this first? #15751 |
Will do; August was crazy. Finally sitting down to work on this this weekend |
@arbreng I would love to see this PR land, would you be able to pick it up? |
Sure! Work and wedding planning have had me really busy lately, but I
should be able to rebase and clean it up this weekend.
…On Tue, Nov 27, 2018 at 6:39 AM Paulus Schoutsen ***@***.***> wrote:
@arbreng <https://github.com/arbreng> I would love to see this PR land,
would you be able to pick it up?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15779 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWUzEwvQPA2K1pkK2vwYldv0CeFYcAgLks5uzU6ogaJpZM4VqVrF>
.
--
David Worsham
(415) 340-2102
|
This PR seems to have gone stale. Closing it. |
Description:
Adds support for states to the Roomba Vacuum Platform, this can be merged after: #15573
It also introduce breaking changes, as it no longer uses:
STATE_ON
STATE_OFF
Also removes any functions related to ToggleEntity, which results in the following services no longer working:
turn_on (Use start_pause instead)
turn_off (Use return_to_dock instead)
toggle (No replacement)
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#5939
Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed: