paolosabatino / saj-mqtt-ha

Home Assistant integrator for SAJ H1 inverters
Apache License 2.0
6 stars 5 forks source link

Fix deprecation warning #10

Closed h3llrais3r closed 6 months ago

h3llrais3r commented 6 months ago

To solve deprecation warning: WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'saj_mqtt' accesses hass.components.mqtt. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from mqtt directly at custom_components/saj_mqtt/sajmqtt.py, line 43: self.mqtt = hass.components.mqtt, please report it to the author of the 'saj_mqtt' custom integration

paolosabatino commented 6 months ago

Merged, thanks!