Skip to content

Commit

Permalink
Merge branch 'master' of github.com:myTselection/Carbu_com
Browse files Browse the repository at this point in the history
  • Loading branch information
myTselection committed Nov 3, 2024
2 parents 2045368 + 10f066c commit 1a8fef2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/carbu_com/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

from homeassistant import config_entries
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import Config, HomeAssistant
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ServiceValidationError
from homeassistant.helpers.typing import ConfigType
from .utils import check_settings, FuelType, ComponentSession

manifestfile = Path(__file__).parent / 'manifest.json'
Expand Down Expand Up @@ -36,7 +37,7 @@
_LOGGER = logging.getLogger(__name__)


async def async_setup(hass: HomeAssistant, config: dict):
async def async_setup(hass: HomeAssistant, config: ConfigType):
"""Set up this component using YAML."""
_LOGGER.info(STARTUP)
if config.get(DOMAIN) is None:
Expand Down Expand Up @@ -192,4 +193,4 @@ async def handle_get_lowest_fuel_price_on_route_coor(call):
hass.services.async_register(DOMAIN, 'get_lowest_fuel_price_on_route', handle_get_lowest_fuel_price_on_route)
hass.services.async_register(DOMAIN, 'get_lowest_fuel_price_coor', handle_get_lowest_fuel_price_coor)
hass.services.async_register(DOMAIN, 'get_lowest_fuel_price_on_route_coor', handle_get_lowest_fuel_price_on_route_coor)
_LOGGER.info(f"async_register done")
_LOGGER.info(f"async_register done")

0 comments on commit 1a8fef2

Please sign in to comment.