From befb42c18553d2f1bb6baa9e8a401ac648deb374 Mon Sep 17 00:00:00 2001 From: Peter Dudfield <34686298+peterdudfield@users.noreply.github.com> Date: Mon, 29 Jul 2024 09:13:53 +0100 Subject: [PATCH] Update solis.py (#166) --- quartz_solar_forecast/inverters/solis.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quartz_solar_forecast/inverters/solis.py b/quartz_solar_forecast/inverters/solis.py index 2dbeea2c..6c64661b 100644 --- a/quartz_solar_forecast/inverters/solis.py +++ b/quartz_solar_forecast/inverters/solis.py @@ -12,7 +12,10 @@ from http import HTTPStatus import json from typing import Any -import async_timeout +try: + import async_timeout +except: + print('Could not import `async_timeout`') from dotenv import load_dotenv @@ -387,4 +390,4 @@ async def get_solis_data(self) -> pd.DataFrame: async def get_solis_data(): solis_data = SolisData() - return await solis_data.get_solis_data() \ No newline at end of file + return await solis_data.get_solis_data()