Closed ronanmu closed 5 months ago
Hi @rolfberkenbosch, have you had an opportunity to take a look at this? Thanks :-)
Hi @rolfberkenbosch, this is an old issue, can you please merge this code or let us know why you won't do it?
Sorry, i missed this one. I just this release this one on release v0.3.1.
Hi, I've updated the logic which matches the 'province' parameter against the results which come back from Meteoalarm. It will still attempt to match based on the province name matching (regex case insensitive as before) , but will now also test if the province param passed matches the code for the geoCode area, which should give better matches for some people who are having trouble with the areaDesc match...
e.g. For an alert like:
now either of 'Strathclyde' or 'UK105' will be a match. From my quick checking, the code is either FIPS, NUTS2 or EMMA_ID but varies by country.
I've added in some tests to verify this, as well as some appropriate mocks and data. Should be non-breaking for users of HomeAssistant 🤞🏻