feat: add API endpoint for bridge restart functionality #28
Reference in New Issue
Block a user
No description provided.
Delete Branch "gangoke/KX-Bridge-Release:api-restart"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Restart Server over api. It will allow a Restart Server Button in my Home Assistant Intergation. Tested and working
Also please add
to .gitignore, so people don't accidently commit personal info. thanks
Thanks @gangoke — clean little addition. 👍
Pulled into our dev branch and tested in Docker:
POST /api/restartreturns{"status": "restarting"}(200) and the bridge restarts cleanly via the existing supervisor path. Perfect for a restart button in your Home Assistant integration.Also added
data/to.gitignoreas you suggested (config/config.iniwas already ignored) — good catch on protecting personal info.Will ship in the next release (with the theme system from #27). Closing this since it's merged into dev; reopen if anything's off. 🙏