Skip to content

Commit befb42c

Browse files
Update solis.py (#166)
1 parent 8d8f5ec commit befb42c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

quartz_solar_forecast/inverters/solis.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
from http import HTTPStatus
1313
import json
1414
from typing import Any
15-
import async_timeout
15+
try:
16+
import async_timeout
17+
except:
18+
print('Could not import `async_timeout`')
1619

1720
from dotenv import load_dotenv
1821

@@ -387,4 +390,4 @@ async def get_solis_data(self) -> pd.DataFrame:
387390

388391
async def get_solis_data():
389392
solis_data = SolisData()
390-
return await solis_data.get_solis_data()
393+
return await solis_data.get_solis_data()

0 commit comments

Comments
 (0)