basnijholt / miflora

☘️🌑🌼πŸ₯€πŸ‘ Mi Flora Plant sensor Python package
MIT License
362 stars 99 forks source link

Improvement of exception handling #85

Closed ChristianKuehnel closed 6 years ago

ChristianKuehnel commented 6 years ago

Fixes https://github.com/open-homeautomation/miflora/issues/84

This is a major refactoring of the exception handling in the Bluetooth backends. All errors are now wrapped in BluetootheBackendExceptions, this abstracts from the different exceptions of the different backends.

It also fixes a locking issues when an exception was raised during the connect operation.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.4%) to 92.727% when pulling c84b39cc967a6d5861226a08464b5c472234fde9 on ChristianKuehnel:exception_handling into 4cdbf135701095ccb344b83cdc3610376acd0155 on open-homeautomation:master.