-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add Restart Button for containers #137
Conversation
This reverts commit 2dcff83.
update entity ID to include _restart to make the button more descriptive. fixed reference to switch in code
Update helpers.py
moved the button to asyncio based on the work in PR #140 |
I am happy to merge this one, but can you put the default too disable for this button feature? I think most users will not prefer it, if even more entities are added to HA. So change: |
my use case is to have an auto entities card that auto-populates with the reboot buttons for all containers, that way as i add/remove containers the reboot button automatically shows up and i don't have to manage it. maybe this can be added as a configuration option, so the button is disabled by default but can be enabled by default if the user choses it, but that might be to big of a code change. Can probably achieve that with an automation of sorts. i'll update the code shortly so this can be merged in and can look at the rest as a separate PR |
disable reboot button by default
I just merged the change in the master. |
I found it handy to have a restart button for containers that I can push from a dashboard.