Sun Position: refactor format_lat_long to make it return both coords
commit2f40c658b9f4cb1f98dcf14f58ea0eda22c87bb1
authorDamien Picard <dam.pic@free.fr>
Fri, 14 Apr 2023 00:17:39 +0000 (14 02:17 +0200)
committerDamien Picard <dam.pic@free.fr>
Fri, 14 Apr 2023 16:48:37 +0000 (14 18:48 +0200)
treed2c7f54381b35a2fb12ff287c58ff3e9fee95c35
parentf571bfdc549914576a720e01e1255e88d425cc27
Sun Position: refactor format_lat_long to make it return both coords

The only place where this formatting function was used was in the UI.
It was called twice, for latitude and longitude. These can be grouped
into a single string, since that is a more common format for such
coordinates.
sun_position/sun_calc.py
sun_position/ui_sun.py