File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
custom_components/svitlo_yeah/api Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,9 @@ async def fetch_planned_outage_data(self) -> None:
249249 )
250250 LOGGER .debug ("Fetching Yasno planned outage data: %s" , url )
251251 async with aiohttp .ClientSession () as session :
252- self .planned_outage_data = await self ._get_route_data (session , url )
252+ output = await self ._get_route_data (session , url )
253+ LOGGER .debug ("Filling Yasno planned outage data with: %s" , output )
254+ self .planned_outage_data = output # ty:ignore[invalid-assignment]
253255
254256 if DEBUG :
255257 self .planned_outage_data = _debug_data ()
@@ -510,8 +512,8 @@ async def _main() -> None:
510512 _api = YasnoApi ()
511513 await _api .fetch_yasno_regions ()
512514 _regions = _api .regions
513- _api .region_id = _regions [0 ].id
514- _api .provider_id = _regions [0 ].dsos [0 ].id
515+ _api .region_id = _regions [0 ].id # ty:ignore[not-subscriptable]
516+ _api .provider_id = _regions [0 ].dsos [0 ].id # ty:ignore[not-subscriptable]
515517 await _api .fetch_planned_outage_data ()
516518 _groups = _api .get_yasno_groups ()
517519 _api .group = _groups [0 ]
You can’t perform that action at this time.
0 commit comments