Skip to content

Commit

Permalink
Merge pull request #4 from sparks1372/patch-1
Browse files Browse the repository at this point in the history
Update Eddi to support three CT properties
  • Loading branch information
CJNE authored Mar 20, 2023
2 parents d198aeb + d948e51 commit cd8fc85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymyenergi/eddi.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def heater_priority(self):
def ct_keys(self):
"""Return CT key names that are not none"""
keys = {}
for i in range(2):
for i in range(3):
ct = getattr(self, f"ct{i+1}")
if ct.name_as_key == "ct_none":
continue
Expand Down Expand Up @@ -211,6 +211,7 @@ def show(self, short_format=False):
ret = ret + f"Boosting, {self.remaining_boost_time} miuntes left"
ret = ret + f"CT 1 {self.ct1.name} {self.ct1.power}W\n"
ret = ret + f"CT 2 {self.ct2.name} {self.ct2.power}W\n"
ret = ret + f"CT 3 {self.ct3.name} {self.ct3.power}W\n"
if self.temp_1 != -1:
ret = ret + f"Temp {self.temp_name_1}: {self.temp_1}C\n"
if self.temp_2 != -1:
Expand Down

0 comments on commit cd8fc85

Please sign in to comment.