dxoverdy / Alpha2MQTT

A smart home interface for AlphaESS solar and battery inverters.
GNU General Public License v3.0
41 stars 6 forks source link

Clean up left-over/unused code #29

Open carrel-gr opened 1 month ago

carrel-gr commented 1 month ago

Remove "dead" line of code. At first glance, I thought this was a bug because the "if" line should have curly braces around the debug lines AND the delay. But then I realized that "subscribed" will ALWAYS be false here. So the code was working correctly, even without the curly braces and the "if" was superfluous and can/should be removed.