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

Automatically enable/disable entity on write action #662

Merged
merged 5 commits into from
Mar 11, 2025

Conversation

WebSpider
Copy link
Contributor

This adds a visual cue to HA users that the entity currently cannot be pressed:

When a write-action to MySkoda is happening, the entity is temporarily disabled.

When the write-action is done, or errored, the entity is re-enabled so it can be pressed again.

This also means that when a throttle is hit because the user is hitting a certain action too often, the absence of entity disable/enable becomes a visual cue that in fact nothing happened.

This is mostly a copy of what was done for the "Generate Fixtures" button, but i think it works nicely!

@WebSpider WebSpider added the enhancement New feature or request label Mar 10, 2025
@WebSpider WebSpider requested review from prvakt and dvx76 March 10, 2025 14:03
@WebSpider WebSpider merged commit dd903ce into skodaconnect:main Mar 11, 2025
3 checks passed
@WebSpider WebSpider deleted the automatic-button-management branch March 11, 2025 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants