basnijholt / miflora

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

Exception handling broken #84

Closed ChristianKuehnel closed 6 years ago

ChristianKuehnel commented 6 years ago

After investigating https://github.com/home-assistant/home-assistant/issues/9048#issuecomment-361377672 I noticed, that the exception handling is broken.

What should happen in case of an exception in the Bluetooth communication: All exceptions from the different backends are wrapped in BluetoothBackendException.

Current situation: Each Bluetooth backend raises different types of exceptions, depending on the backend.

This needs to fixed and tested properly