From dfc945cb5434df6daf15c6549f586cd1d6549bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Tue, 6 Jun 2023 23:33:44 +0300 Subject: [PATCH] Update main.py --- sensors/main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sensors/main.py b/sensors/main.py index 7177c6e..4b81a3d 100644 --- a/sensors/main.py +++ b/sensors/main.py @@ -80,11 +80,8 @@ class Bme680Sensor(Accessory): @Accessory.run_at_interval(120) def run(self): - """We override this method to implement what the accessory will do when it is - started. - - We set the current temperature to a random number. The decorator runs this method - every 3 seconds. + """ + This function runs the accessory. It polls for data and publishes it at the given interval. """ try: self._run()