RobertD502 / hass-flair-helper

Flair API helper used by home-assistant-flair component
MIT License
2 stars 2 forks source link

Handling the unexpected EmptyBodyException for collections that are, in fact, empty #1

Closed shauntarves closed 3 years ago

shauntarves commented 3 years ago

I don't have any Flair vents, and the logic in this helper wasn't handling the EmptyBodyException that the flair-client is throwing in that case and was preventing the entire HA plugin from being configured.

I have no idea why they chose to do it this way, but I did create an issue to get better understanding: https://github.com/flair-systems/flair-api-client-py/issues/4

RobertD502 commented 3 years ago

@shauntarves Thank you! I've been meaning to get to that, but got sidetracked building another custom component. One my milestones (in the home-assistant-flair repo) for this library is to completely rewrite it to be async and not rely on their python library.