From ec8c2c19a7ae3f0f8a473a8a96d4dd24fd34c0ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Sun, 27 Oct 2024 13:10:10 +0100 Subject: [PATCH] Update temperature_sensor.py --- circuitmatter/device_types/sensor/temperature_sensor.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/circuitmatter/device_types/sensor/temperature_sensor.py b/circuitmatter/device_types/sensor/temperature_sensor.py index ad18a40..ac89e90 100644 --- a/circuitmatter/device_types/sensor/temperature_sensor.py +++ b/circuitmatter/device_types/sensor/temperature_sensor.py @@ -19,7 +19,4 @@ def __init__(self, name): self._temp = TemperatureMeasurement() self.servers.append(self._temp) - - self._temp.MeasuredValue = random.randint( - 1500, 2500 - ) # Random temp between 15°C and 25°C + self._temp.MeasuredValue = random.randint(1500, 2500) # Random temp between 15°C and 25°C