Skip to content

Commit

Permalink
use ConfigType instead of Config (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbbrhzn authored Nov 6, 2024
1 parent 4ff9169 commit b8f190c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/ocpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import logging

from homeassistant.config_entries import ConfigEntry
from homeassistant.core import Config, HomeAssistant
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers import device_registry
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
Expand Down Expand Up @@ -50,7 +51,7 @@
)


async def async_setup(hass: HomeAssistant, config: Config):
async def async_setup(hass: HomeAssistant, config: ConfigType):
"""Read configuration from yaml."""

ocpp_config = config.get(DOMAIN, {})
Expand Down

0 comments on commit b8f190c

Please sign in to comment.