turbokongen / hass-AMS

Custom component reading AMS through MBus adapter into HomeAssistant
42 stars 10 forks source link

Fix for 2024.3.0 #102

Closed oeriksen closed 3 months ago

oeriksen commented 3 months ago

Tested in 2024.2.5 and 2024.3.1

Fixes issue #100

Problem is that async_add_devices(sensors) in line 78 in sensor.py must be executed in event loop. I can try to explain more and better if needed.

I'm not used neither github or python so sorry if anything is wrong or out of the ordinary.