mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 13:34:55 +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):
|
def to_dict(self):
|
||||||
if self.instance is not None:
|
if self.instance is not None:
|
||||||
state = self.instance.get_state()
|
state = self.instance.get_state()
|
||||||
type = self.type
|
actortype = self.type
|
||||||
else:
|
else:
|
||||||
state = False
|
state = False
|
||||||
type = "!!! MISSING TYPE !!!"
|
actortype = "!!! 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)
|
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):
|
class DataType(Enum):
|
||||||
VALUE="value"
|
VALUE="value"
|
||||||
|
|
Loading…
Reference in a new issue