Skip to content
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

generic update service #201

Merged
merged 3 commits into from
Jan 21, 2025
Merged

Conversation

TheSimpleZ
Copy link
Contributor

@TheSimpleZ TheSimpleZ commented Jan 20, 2025

This adds a generic update action that can target any device and will send the properties as a json.
Properties are provided in yaml format to the action.

Allows users to experiment with the API easily and extend the functionality of the integration without waiting for updates.

Also fixed inconsistent spaces between strings.json and en.json translation file. Strings used 2, en used 4. Now they both use 2.

Example:
image

Copy link
Owner

@oyvindwe oyvindwe left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! It is great to get help with this integration. ❤️

Just one comment about redundant code.

SERVICE_SET_ACTION = "set_action"
SERVICE_UPDATE = "UPDATE"
Copy link
Owner

Choose a reason for hiding this comment

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

Should the value here be lowecased., ie. "update"?

Copy link
Contributor Author

@TheSimpleZ TheSimpleZ Jan 21, 2025

Choose a reason for hiding this comment

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

Yes, good catch. Fixed.
That happened during a search and replace. It's nice to keep it consistent, although I don't think it really matters, it still works on my installation.

@oyvindwe oyvindwe merged commit e01c702 into oyvindwe:main Jan 21, 2025
1 check passed
@oyvindwe
Copy link
Owner

Thanks! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants