oischinger / ha_vicare

Inofficial Home Assistant custom component for Viessmann ViCare API
61 stars 33 forks source link

avoid exceptions raising up to HA core #123

Open krahabb opened 1 year ago

krahabb commented 1 year ago

Hello, This is the second part of my proposal to reduce HA log cluttering.

This PR is rather 'intensive' on the code and I'll try to explain the rationale and the coding choices:

oischinger commented 1 year ago

Thanks for the contribution. Generally it makes sense to handle the exceptions. I'm also fine if we do that as a 2st step.

In the long run I was however thinking of not logging some exceptions and instead creating error-type sensors e.g.

this way we could also trigger the exceptions only on the first occurence. and improve the logging as you mentioned in your other PR

krahabb commented 1 year ago

Hello, Sorry to be that late but I didn't receive any notification since some time ago I've completely disabled them in github (they were too much!). I'll try to follow the development even if, at the moment, I'm pretty busy on my own integration. Thank you for following up! Davide