Skip to content

Commit

Permalink
Fix:Fixing Base_Sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
Pastucha committed Mar 20, 2024
1 parent 6f8e2fb commit d3de41f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions blebox_uniapi/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def decorator(subclass: type):

@classmethod
def many_from_config(cls, product, box_type_config, extended_state):
type_class_mapper = BaseSensor.type_class_mapper
type_class_mapper = cls.type_class_mapper
if extended_state:
object_list = []
alias, methods = box_type_config[0]
Expand Down Expand Up @@ -70,8 +70,6 @@ class BaseSensor(Feature):
_device_class: str
_native_value: Union[float, int, str]

type_class_mapper = {}

def __init__(self, product: "Box", alias: str, methods: dict):
super().__init__(product, alias, methods)

Expand Down

0 comments on commit d3de41f

Please sign in to comment.