jesserizzo / envoy_reader

MIT License
37 stars 26 forks source link

Raise an exception when Authentication fails for Inverter data #18

Closed gtdiehl closed 4 years ago

gtdiehl commented 4 years ago

The Envoy API was printing out a message to the console when inverter data was unable to be collected. For Home Assistant to consume and log the error in its own log, I raised an exception instead.

There are other cases where the error messages being printed to the console will not be displayed in the HA logs. But given my lack of knowledge with exceptions, I didn't want to change too much code! :grin:

This change is for the HA PR #28837