I have the pi_hole_enabled variable tied to a button state so I can easily see the state of Pi-Hole, and change it with a button press.
If I press the button, my pi-hole instance gets turned off/disabled, so I know the API connection is working. But the variable state doesn't update.


I have the pi_hole_enabled variable tied to a button state so I can easily see the state of Pi-Hole, and change it with a button press.
If I press the button, my pi-hole instance gets turned off/disabled, so I know the API connection is working. But the variable state doesn't update.