Skip to content

Commit

Permalink
Fix Ruuvi updates not arriving with a manually created event loop.
Browse files Browse the repository at this point in the history
Worked around with instructions from ruuvitag-sensor issue.

Bug: ttu/ruuvitag-sensor#186
  • Loading branch information
ndob committed Feb 24, 2024
1 parent 1790d6a commit 59b04b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import datetime
import sqlite3
import traceback
from ruuvitag_sensor.ruuvi import RuuviTagSensor

async def collect(update_interval, db):
from ruuvitag_sensor.ruuvi import RuuviTagSensor
last_update = dict()
async for data in RuuviTagSensor.get_data_async():
mac_address = data[1]["mac"]
Expand Down

0 comments on commit 59b04b0

Please sign in to comment.