Add scene.delete service for dynamically created scenes (with scene.create)#89090
Conversation
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
31f301b to
979f0b1
Compare
2023.3: Beta release notes 2023.3: Update KNX change description (home-assistant#26347) 2023.3: Process community feedback on beta release notes 2023.3: Add Z-Wave JS breaking change details Clarify the example is below the sentence (home-assistant#26349) Update Insteon documentation (home-assistant#26399) 2023.3: Finalize restarting Home Assistant 2023.3: Finalize Python 3.11 section 2023.3: Finalize sensor precision 2023.3: Finalize new integrations 2023.3: Finalize breaking change + dev blog links 2023.3: Finalize other noteworthy changes 2023.3: Add missing todoist breaking change 2023.3: Finalize new automation dialog 2023.3: Finalize thread and matter 2023.3: Finalize intro 2023.3: Finalize new light dialog 2023.3: Title, date, description, links 2023.3: Small tweaks 2023.3: Small tweaks Add Heltun integration (home-assistant#26411) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Revert "Update derivative.markdown" (home-assistant#26402) Remove reference to non-implemented attributes (home-assistant#26408) Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> 2023.3: Update changelog Fix cover templates breaking change text Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Use brand logos if ha_brand in search results (home-assistant#26427) Clarify Thread border router credential sync (home-assistant#26423) 2023.3.1 (home-assistant#26430) * 2023.3.1 * Update source/_posts/2023-03-01-release-20233.markdown * Update source/_posts/2023-03-01-release-20233.markdown add reinstall instructions (home-assistant#26439) Bump rack from 2.2.6.2 to 2.2.6.3 (home-assistant#26440) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Add scene.delete service See home-assistant/core#89090 Add climate devices documentation for LIVISI integration (home-assistant#25957) Add Camera to Prosegur (home-assistant#25419) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Adding Obihai codeowner (home-assistant#26386) HELTUN partnership announcement blog post (home-assistant#26415) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Update renault documentation - Add button section (home-assistant#26260) Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> Document energy_storage and volume_storage device classes (home-assistant#26394) Co-authored-by: Franck Nijhof <git@frenck.dev> Add Config Flow to Obihai (home-assistant#26354) Add reolink button entities (home-assistant#26355) device_class and state_class (home-assistant#25742) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Reolink add switch entities (home-assistant#26353) Co-authored-by: Franck Nijhof <git@frenck.dev> Add Reolink siren documentation (home-assistant#26282) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Co-authored-by: Franck Nijhof <git@frenck.dev> Add Reolink select entities (home-assistant#26341) Co-authored-by: Franck Nijhof <git@frenck.dev> Co-authored-by: Franck Nijhof <frenck@frenck.nl> Add new Reolink number entities (home-assistant#26283) Add reolink light entities (home-assistant#26338) Add Obihai Reboot button (home-assistant#26385) Add clarification for reolink entities (home-assistant#26469) Co-authored-by: Franck Nijhof <frenck@frenck.nl> Add Door cover documentation (home-assistant#26331) Resolves home-assistant/core#80741
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
|
Not stale. Will merge base branch when I'll be back from my holiday :D |
8ad0d5b to
47199b9
Compare
|
@tetele what is left for this to be merged ? Is this ready for review ? This has been stuck for quite some time. |
|
I see some failing tests after a rebase. I will look into it the next few days, but nobody has picked this up for review yet. |
47199b9 to
57e1afe
Compare
|
There, @sidevesh, all tests are green. Now maybe someone can review the PR. Feel free to do so yourself, if you want to. |
|
thanks @tetele, I don't have write access so I can't review, @MartinHjelmare can you review maybe ? |
|
Please don't ping for review. |
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
f74da3c to
39c5624
Compare
Only for scenes created with scene.create
First, check if entity_id is a scene Second, check if it's a scene created with `scene.create`
- Move service to `homeassistant` domain - Register with `platform.async_register_entity_service` - Raise validation errors instead of just logging messages
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
|
Are we ready to merge? Please click ready for review when ready. |
|
I was waiting to see that all checks were passing. Ready for review, cap'n, sir! :D |
Breaking change
Proposed change
Add a new
scene.deleteservice that deletes temporary scenes created with thescene.createservice.Type of change
Additional information
Although there is no open issue for this PR, here are a few links to it being requested:
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: