Last active
May 31, 2021 19:45
-
-
Save lmeulen/677acba5e976ed0985c25981aee5e416 to your computer and use it in GitHub Desktop.
Screens_emptyscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import utils, logging | |
STATUS_FILE = "example.dat" | |
def run(): | |
logger = logging.getLogger('home automation') | |
logger.debug("Script: Example script") | |
example_bool = utils.get_current_status(STATUS_FILE, default=False) | |
logger.debug("Example bool: " + str(example_bool)) | |
example_bool = not example_bool | |
utils.save_current_state(STATUS_FILE, example_bool) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment