Skip to content

Commit

Permalink
Use proper type for config parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rccoleman authored Oct 30, 2024
1 parent 5f78208 commit 9931d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/pyscript/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SERVICE_RELOAD,
)
from homeassistant.core import Event as HAEvent, HomeAssistant, ServiceCall
from homeassistant.core_config import Config
from homeassistant.helpers.typing import ConfigType
from homeassistant.exceptions import HomeAssistantError
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.restore_state import DATA_RESTORE_STATE
Expand Down Expand Up @@ -65,7 +65,7 @@
CONFIG_SCHEMA = vol.Schema({DOMAIN: PYSCRIPT_SCHEMA}, extra=vol.ALLOW_EXTRA)


async def async_setup(hass: HomeAssistant, config: Config) -> bool:
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Component setup, run import config flow for each entry in config."""
await restore_state(hass)
if DOMAIN in config:
Expand Down

0 comments on commit 9931d1e

Please sign in to comment.