From f679aabf0c32e2e9a03aa098cc05136925c03a9f Mon Sep 17 00:00:00 2001 From: avollkopf Date: Tue, 17 Dec 2024 21:19:33 +0100 Subject: [PATCH] replace type with actortype variable --- cbpi/api/dataclasses.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cbpi/api/dataclasses.py b/cbpi/api/dataclasses.py index 014756e..c0bf08e 100644 --- a/cbpi/api/dataclasses.py +++ b/cbpi/api/dataclasses.py @@ -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"