Modulations and locations lists are now detected at startup.

Also improve styles of some widgets.
Also fix a bug in forecast screen.
This commit is contained in:
alessandro90
2019-05-16 21:34:53 +02:00
parent 825386a8f1
commit 9ebf60779b
6 changed files with 3083 additions and 2376 deletions

View File

@@ -143,10 +143,13 @@ class ForecastData(_BaseWeatherData):
]
def _parse_data(self):
self.forecast = self.forecast.splitlines()
# Remove possible '(G\d)' from the kp_index table
self.forecast = re.sub(
'\(G\d\)', lambda obj: '', self.forecast
)
self.forecast = self.forecast.splitlines()
self.probabilities = re.sub(
'(G\d)', lambda obj: '', self.probabilities
'\(G\d\)', lambda obj: '', self.probabilities
)
self.probabilities = self.probabilities.splitlines()