Skip to content

Commit 865bf5f

Browse files
author
brentru
committed
change feed model to explicitly set values
1 parent 4dbef23 commit 865bf5f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Adafruit_IO/model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@
7272

7373
# Magic incantation to make all parameters to the initializers optional with a
7474
# default value of None.
75-
Data.__new__.__defaults__ = tuple(None for x in DATA_FIELDS)
76-
Feed.__new__.__defaults__ = tuple(None for x in FEED_FIELDS)
7775
Group.__new__.__defaults__ = tuple(None for x in GROUP_FIELDS)
76+
Data.__new__.__defaults__ = tuple(None for x in DATA_FIELDS)
77+
78+
# explicitly set feed values
79+
Feed.__new__.__defaults__ = (None, None, None, None, None, 'ON', 'Private', None, None, None)
7880

7981
# Define methods to convert from dicts to the data types.
8082
def _from_dict(cls, data):

0 commit comments

Comments
 (0)