Open
Conversation
1f411c6 to
4f867a4
Compare
a07219e to
1da52d9
Compare
Contributor
Author
|
I fixed the issues with the duplicate entities by redoing the unique_id generation and standardized to storing the toggle_for as a HA duration dict. |
1da52d9 to
8cb3a13
Compare
8cb3a13 to
6d827c2
Compare
Owner
|
I just tried this and the upgrade failed, none of my existing devices got brought in. It shows them all as "no longer provided by the momentary component". I tried to delete the entries but I can't seem to see a way to add a YAML file back into the component. This is one of the files that failed to upgrade. It has a bunch of triggers I used to test my system. version: 1
switches:
- name: +bad weather check trigger
toggle_for: 1
- name: +change alarm to away
toggle_for: 1
- name: +change alarm to disarmed
toggle_for: 1
- name: +change alarm to emergency
toggle_for: 1
- name: +change alarm to home
toggle_for: 1
- name: +change automations to running
toggle_for: 1
- name: +change automations to stopped
toggle_for: 1
- name: +change cameras to away
toggle_for: 1
- name: +change cameras to disarmed
toggle_for: 1
- name: +change cameras to home
toggle_for: 1
- name: +change phase to daytime
toggle_for: 1
- name: +change phase to evening
toggle_for: 1
- name: +change phase to nighttime
toggle_for: 1
- name: +everybody left check trigger
toggle_for: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features
Note
!entity id naming functionality in the YAML or in the config_flowThis pull request refactors and modernizes the
momentaryHome Assistant integration, focusing on simplifying configuration management, improving code clarity, and enhancing the options flow. The changes remove legacy YAML config support, unify configuration handling via the UI and YAML import, and update service registration and device management logic.Configuration Management and Refactoring:
__init__.pyand removed legacy device registry logic.const.py, defining only the necessary configuration keys and defaults.Options Flow and UI Improvements:
config_flow.pyto use a unified schema builder for user input, supporting both UI and YAML import. Added a new options flow handler for config entries, allowing users to update options except for YAML-created switches.Service Registration and Device Management:
Fixes #54