Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion notecard/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions notecard/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down