bachya / ecowitt2mqtt

Send data from Fine Offset weather stations (Ecowitt, Ambient Weather, Froggit, etc.) to MQTT!
MIT License
210 stars 44 forks source link

feat: add ability to set locale #1014

Closed bachya closed 2 months ago

bachya commented 2 months ago

Describe what the PR does:

SSIA. This is useful when a device/gateway reports values with different decimal representations (e.g., 47,123 instead of 47.123). Setting the appropriate locale will allow these numbers to be parsed correctly.

Does this fix a specific issue?

Fixes https://github.com/bachya/ecowitt2mqtt/issues/946

Checklist:

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (69a1ce5) to head (fd935cf).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #1014 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 32 32 Lines 1761 1775 +14 ========================================= + Hits 1761 1775 +14 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.