Skip to content

Add service to snooze SmartTub reminders#51012

Merged
frenck merged 5 commits into
home-assistant:devfrom
mdz:smarttub-snooze
May 25, 2021
Merged

Add service to snooze SmartTub reminders#51012
frenck merged 5 commits into
home-assistant:devfrom
mdz:smarttub-snooze

Conversation

@mdz
Copy link
Copy Markdown
Contributor

@mdz mdz commented May 23, 2021

Proposed change

Add a new service, to allow a reminder to be snoozed (suppressed for a period of time)

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

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

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

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

To help with the load of incoming pull requests:

@mdz
Copy link
Copy Markdown
Contributor Author

mdz commented May 23, 2021

I'll add documentation for this once home-assistant/home-assistant.io#16721 has been merged

@mdz mdz marked this pull request as ready for review May 23, 2021 22:13
@frenck
Copy link
Copy Markdown
Member

frenck commented May 25, 2021

The docs PR has been merged @mdz 👍

Copy link
Copy Markdown
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

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

Really tiny comment. Otherwise, it looks good 👍

Comment thread homeassistant/components/smarttub/services.yaml Outdated
Comment thread homeassistant/components/smarttub/services.yaml Outdated
mdz and others added 2 commits May 25, 2021 08:38
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
@mdz
Copy link
Copy Markdown
Contributor Author

mdz commented May 25, 2021

Committed suggestions, thank you

@frenck
Copy link
Copy Markdown
Member

frenck commented May 25, 2021

Thanks, @mdz 👍

@frenck frenck merged commit aa18ad2 into home-assistant:dev May 25, 2021
"""Return the device class for this entity."""
return DEVICE_CLASS_PROBLEM

async def async_snooze(self, **kwargs):
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.

We don't need to accept kwargs here. We can just name the parameter the same as the service data attribute, ie days.

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.

@mdz mdz deleted the smarttub-snooze branch May 26, 2021 02:09
@github-actions github-actions Bot locked and limited conversation to collaborators May 27, 2021
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.

5 participants