mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 05:24:54 +01:00
replace type with actortype variable
This commit is contained in:
parent
47f5e82e77
commit
f679aabf0c
1 changed files with 3 additions and 3 deletions
|
@ -65,11 +65,11 @@ class Actor:
|
|||
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"
|
||||
|
|
Loading…
Reference in a new issue