From a0fce37b3175013d634c833dfa247dc24725079c Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:07:23 -0700 Subject: [PATCH] refactor: use `ConfigType` instead of `Config` (#112) --- custom_components/gasbuddy/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/gasbuddy/__init__.py b/custom_components/gasbuddy/__init__.py index b01d7ff..ba5a875 100644 --- a/custom_components/gasbuddy/__init__.py +++ b/custom_components/gasbuddy/__init__.py @@ -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 ( @@ -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