Update main.py

This commit is contained in:
Denis-Cosmin Nutiu 2023-06-06 23:33:44 +03:00 committed by GitHub
parent a5b983a683
commit dfc945cb54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,11 +80,8 @@ class Bme680Sensor(Accessory):
@Accessory.run_at_interval(120) @Accessory.run_at_interval(120)
def run(self): def run(self):
"""We override this method to implement what the accessory will do when it is """
started. This function runs the accessory. It polls for data and publishes it at the given interval.
We set the current temperature to a random number. The decorator runs this method
every 3 seconds.
""" """
try: try:
self._run() self._run()