Skip to content

Commit

Permalink
Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
lboue authored Oct 17, 2024
1 parent 23d8f0f commit 0b87b2b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions circuitmatter/device_types/measurement/temperature_sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from circuitmatter.clusters.general.identify import Identify
from circuitmatter.clusters.general.temperature_measurement import TemperatureMeasurement

from circuitmatter.clusters.general.temperature_measurement import (
TemperatureMeasurement,
)
from .. import simple_device

import random
Expand All @@ -19,6 +20,8 @@ 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


0 comments on commit 0b87b2b

Please sign in to comment.