Skip to content

Commit eca0ef0

Browse files
Update Notecard API from upstream schema changes (4003e4cfefec9e85a68ba2b7e9934d627a012366) (#130)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d9ac186 commit eca0ef0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

notecard/card.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,19 +841,16 @@ def usageTest(card, days=None, hours=None, megabytes=None):
841841

842842

843843
@validate_card_object
844-
def version(card, api=None):
844+
def version(card):
845845
"""Return firmware version information for the Notecard.
846846
847847
Args:
848848
card (Notecard): The current Notecard object.
849-
api (int): Specify a major version of the Notecard firmware that a host expects to use.
850849
851850
Returns:
852851
dict: The result of the Notecard request.
853852
"""
854853
req = {"req": "card.version"}
855-
if api is not None:
856-
req["api"] = api
857854
return card.Transaction(req)
858855

859856

0 commit comments

Comments
 (0)