mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 23:41:48 -05:00
Rename ProgettihwswConfigEntry to ProgettiHWSWConfigEntry
Agent-Logs-Url: https://github.com/home-assistant/core/sessions/27e905d8-a0a6-4cf2-8ac3-e3c38f9a14ac Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
co-authored by
epenet
parent
4a3ced3059
commit
7d10c45fbc
@@ -10,11 +10,11 @@ from homeassistant.core import HomeAssistant
|
||||
|
||||
PLATFORMS = [Platform.BINARY_SENSOR, Platform.SWITCH]
|
||||
|
||||
type ProgettihwswConfigEntry = ConfigEntry[ProgettiHWSWAPI]
|
||||
type ProgettiHWSWConfigEntry = ConfigEntry[ProgettiHWSWAPI]
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant, entry: ProgettihwswConfigEntry
|
||||
hass: HomeAssistant, entry: ProgettiHWSWConfigEntry
|
||||
) -> bool:
|
||||
"""Set up ProgettiHWSW Automation from a config entry."""
|
||||
api = ProgettiHWSWAPI(f"{entry.data['host']}:{entry.data['port']}")
|
||||
@@ -30,7 +30,7 @@ async def async_setup_entry(
|
||||
|
||||
|
||||
async def async_unload_entry(
|
||||
hass: HomeAssistant, entry: ProgettihwswConfigEntry
|
||||
hass: HomeAssistant, entry: ProgettiHWSWConfigEntry
|
||||
) -> bool:
|
||||
"""Unload a config entry."""
|
||||
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|
||||
|
||||
@@ -14,7 +14,7 @@ from homeassistant.helpers.update_coordinator import (
|
||||
DataUpdateCoordinator,
|
||||
)
|
||||
|
||||
from . import ProgettihwswConfigEntry, setup_input
|
||||
from . import ProgettiHWSWConfigEntry, setup_input
|
||||
from .const import DEFAULT_POLLING_INTERVAL_SEC
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@@ -22,7 +22,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
config_entry: ProgettihwswConfigEntry,
|
||||
config_entry: ProgettiHWSWConfigEntry,
|
||||
async_add_entities: AddConfigEntryEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up the binary sensors from a config entry."""
|
||||
|
||||
@@ -15,7 +15,7 @@ from homeassistant.helpers.update_coordinator import (
|
||||
DataUpdateCoordinator,
|
||||
)
|
||||
|
||||
from . import ProgettihwswConfigEntry, setup_switch
|
||||
from . import ProgettiHWSWConfigEntry, setup_switch
|
||||
from .const import DEFAULT_POLLING_INTERVAL_SEC
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@@ -23,7 +23,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
config_entry: ProgettihwswConfigEntry,
|
||||
config_entry: ProgettiHWSWConfigEntry,
|
||||
async_add_entities: AddConfigEntryEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up the switches from a config entry."""
|
||||
|
||||
Reference in New Issue
Block a user