diff --git a/custom_components/mega/sensor.py b/custom_components/mega/sensor.py index 91a96e8..55e03a9 100644 --- a/custom_components/mega/sensor.py +++ b/custom_components/mega/sensor.py @@ -229,8 +229,8 @@ class Mega1WSensor(FilterBadValues): def __init__( self, - unit_of_measurement, - device_class, + unit_of_measurement=None, + device_class=None, key=None, *args, **kwargs