From d15b44c83f70abd17690016055855a4e55fa256c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Mar 2026 17:01:54 +0000 Subject: [PATCH] Update Notecard API from upstream schema changes (eeb7198490742f656fad5d1a5c00e845b3bb42be) --- notecard/card.py | 2 +- notecard/env.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notecard/card.py b/notecard/card.py index 711123b..16cb46b 100644 --- a/notecard/card.py +++ b/notecard/card.py @@ -707,7 +707,7 @@ def temp(card, minutes=None, status=None, stop=None, sync=None): @validate_card_object def time(card): - """Retrieve current date and time information in UTC. Upon power-up, the Notecard must complete a sync to Notehub in order to obtain time and location data. Before the time is obtained, this request will return `{"zone":"UTC,Unknown"}`. + """Retrieve current date and time information in UTC. Upon power-up, the Notecard must complete a sync to Notehub in order to obtain time and location data. Before the time is obtained, this request will return `{"zone":"UTC,Unknown"}`. The Notecard's stored timezone is only updated when a new Notehub session begins. Args: card (Notecard): The current Notecard object. diff --git a/notecard/env.py b/notecard/env.py index ab18874..9707bdc 100644 --- a/notecard/env.py +++ b/notecard/env.py @@ -13,7 +13,7 @@ @validate_card_object -def default(card, name=None, sync=None, text=None): +def default(card, name, sync=None, text=None): """Use by the Notecard host to specify a default value for an environment variable until that variable is overridden by a device, project or fleet-wide setting at Notehub. Args: @@ -76,7 +76,7 @@ def modified(card, time=None): @validate_card_object -def set(card, name=None, text=None): +def set(card, name, text=None): """Set a local environment variable on the Notecard. Local environment variables cannot be overridden by a Notehub variable of any scope. Args: