Skip to content

Commit

Permalink
Remove unused timedelta, a typo and pylance warning
Browse files Browse the repository at this point in the history
  • Loading branch information
autoSteve committed Dec 5, 2024
1 parent 051025c commit 48eccdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions custom_components/solcast_solar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

import asyncio
import contextlib
from datetime import timedelta
import json
import logging
import random
import traceback
from typing import Any, Final

import aiofiles # type: ignore # noqa: PGH003
import aiofiles
import voluptuous as vol

from homeassistant import loader
Expand Down Expand Up @@ -771,7 +770,7 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
An integration downgrade must not cause any issues when future options have been
configured, with future options then just being unused. To be clear, the intent or
characteristics of an option cannot change with an upgrade, so if an intent does change
then an new option must be used (for example, HARD_LIMIT to HARD_LIMIT_API). Prior
then a new option must be used (for example, HARD_LIMIT to HARD_LIMIT_API). Prior
versions must cope with the absence of an option should one be deleted.
The present version (e.g. `VERSION = 14`) is specified in `config_flow.py`.
Expand Down
4 changes: 2 additions & 2 deletions custom_components/solcast_solar/solcastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
import traceback
from typing import Any, Final, cast

import aiofiles # type: ignore # noqa: PGH003
import aiofiles
from aiohttp import ClientConnectionError, ClientSession
from aiohttp.client_reqrep import ClientResponse
from isodate import parse_datetime # type: ignore # noqa: PGH003
from isodate import parse_datetime

from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_API_KEY
Expand Down

0 comments on commit 48eccdc

Please sign in to comment.