Skip to content

Commit

Permalink
replace type with actortype variable
Browse files Browse the repository at this point in the history
  • Loading branch information
avollkopf committed Dec 17, 2024
1 parent 47f5e82 commit f679aab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cbpi/api/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def __str__(self):
def to_dict(self):
if self.instance is not None:
state = self.instance.get_state()
type = self.type
actortype = self.type
else:
state = False
type = "!!! MISSING TYPE !!!"
return dict(id=self.id, name=self.name, type=type, props=self.props.to_dict(), state=state, power=self.power, timer=self.timer)
actortype = "!!! MISSING TYPE !!!"
return dict(id=self.id, name=self.name, type=actortype, props=self.props.to_dict(), state=state, power=self.power, timer=self.timer)

class DataType(Enum):
VALUE="value"
Expand Down

0 comments on commit f679aab

Please sign in to comment.