Skip to content

Commit

Permalink
refactor: use ConfigType instead of Config (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Oct 30, 2024
1 parent 8c078cb commit a0fce37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/gasbuddy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
# pylint: disable-next=import-error,no-name-in-module
from gasbuddy.exceptions import APIError, LibraryError
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import Config, HomeAssistant
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers.device_registry import DeviceEntry
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed

from .const import (
Expand All @@ -32,7 +33,7 @@


async def async_setup( # pylint: disable-next=unused-argument
hass: HomeAssistant, config: Config
hass: HomeAssistant, config: ConfigType
) -> bool:
"""Disallow configuration via YAML."""
return True
Expand Down

0 comments on commit a0fce37

Please sign in to comment.