Skip to content

Commit

Permalink
Enumerated instead of Integer in schedule. Removed sensible variables…
Browse files Browse the repository at this point in the history
… in tec_short_list
  • Loading branch information
ChristianTremblay committed Jan 7, 2022
1 parent e5e3005 commit fbbc0d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BAC0/core/functions/Schedule.py
Expand Up @@ -109,7 +109,7 @@ def _set_value(v):
if dict_schedule["states"] == ["inactive", "active"]:
return Integer(dict_schedule["states"][v])
else:
return Integer(dict_schedule["states"][v] - 1)
return Enumerated(dict_schedule["states"][v] - 1)

daily_schedules = []
for day in Schedule.days:
Expand Down
4 changes: 2 additions & 2 deletions BAC0/core/proprietary_objects/jci.py
Expand Up @@ -349,8 +349,8 @@ def tec_short_point_list(unit_type="2-pipe"):
("multiStateValue", 29709),
("multiStateValue", 29708),
("analogValue", 29505),
("analogValue", 29502),
("analogValue", 29503),
# ("analogValue", 29502),
# ("analogValue", 29503),
("analogValue", 29504),
("analogValue", 29506),
("analogValue", 29507),
Expand Down
2 changes: 1 addition & 1 deletion BAC0/infos.py
Expand Up @@ -12,5 +12,5 @@
__email__ = "christian.tremblay@servisys.com"
__url__ = "https://github.com/ChristianTremblay/BAC0"
__download_url__ = "https://github.com/ChristianTremblay/BAC0/archive/master.zip"
__version__ = "21.12.03"
__version__ = "22.01.06dev"
__license__ = "LGPLv3"

0 comments on commit fbbc0d9

Please sign in to comment.