ttu/ruuvitag-sensor

find_ruuvitags_async payload contains non-parsed data

ttu opened this issue · 1 comments

ttu commented

find_ruuvitags_async should return parsed data for sensors, same way as synchronous find_ruuvitags does.

Implementation

find_ruuvitags uses _get_ruuvitag_data

for new_data in RuuviTagSensor._get_ruuvitag_data(bt_device=bt_device):

which parses the data before returnig

data = RuuviTagSensor._parse_data(ble_data, mac_blacklist, macs)

Asynchronous version should parse the data before setting it to dictionary

async for new_data in data_iter:

ttu commented

Thanks. Was supposed to add a good first issue lable instead of help wanted 😆 Will create some issues with correct label.