ianByrne / HASS-ukho_tides

Home Assistant integration for tide information
MIT License
28 stars 6 forks source link

Use specifc event types when completing the attributes #31

Closed patch0 closed 1 week ago

patch0 commented 1 week ago

This finds the first HighWater and LowWater event types specifically to fill the attributes. This deals with the case when there are no events of one of HighWater or LowWater events, filling out the details of the first of either type.

This is a rethink of my previous PR #30 which (now) obviously wasn't going to work. This is a more robust approach, I think!

I've actually tested it this time.. :see_no_evil: