weather_api: Fix timestamp str

This commit is contained in:
nemunaire 2023-08-17 00:02:48 +02:00
parent b1f76c7c3e
commit 1a0377ad5d
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class WeatherAPI:
def read_timestamp(self, timestamp, *args, **kwargs):
PARIS = ZoneInfo("Europe/Paris")
return datetime.fromtimestamp(timestamp, tz=timezone.utc).astimezone(PARIS)
return datetime.fromtimestamp(int(timestamp), tz=timezone.utc).astimezone(PARIS)
#WeatherAPI = TomorrowAPI