Compare commits

...

1 commit

Author SHA1 Message Date
Tyeth Gundry
931457e4a0
Add Enabled feed attribute (default True) 2023-12-05 23:04:29 +00:00

View file

@ -45,6 +45,7 @@ FEED_FIELDS = [ 'name',
'key',
'id',
'description',
'enabled',
'unit_type',
'unit_symbol',
'history',
@ -109,7 +110,7 @@ Dashboard.__new__.__defaults__ = (None, None, None, False, "dark", True, None, N
Block.__new__.__defaults__ = (None, None, None, {}, None)
# explicitly set feed values
Feed.__new__.__defaults__ = (None, None, None, None, None, None, 'ON', 'Private', None, None, None)
Feed.__new__.__defaults__ = (None, None, None, None, True, None, None, 'ON', 'Private', None, None, None)
# Define methods to convert from dicts to the data types.
def _from_dict(cls, data):