mirror of
https://github.com/Andre0512/hon.git
synced 2026-07-03 21:55:30 +02:00
removed alias
This commit is contained in:
@@ -4,9 +4,9 @@ from pathlib import Path
|
||||
from homeassistant.components import persistent_notification
|
||||
from homeassistant.components.button import ButtonEntityDescription, ButtonEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant as HomeAssistantType
|
||||
from homeassistant.helpers.entity import EntityCategory
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.core import HomeAssistant
|
||||
from pyhon.appliance import HonAppliance
|
||||
|
||||
from .const import DOMAIN
|
||||
@@ -56,7 +56,7 @@ BUTTONS: dict[str, tuple[ButtonEntityDescription, ...]] = {
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistantType, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||
) -> None:
|
||||
entities: list[HonButtonType] = []
|
||||
for device in hass.data[DOMAIN][entry.unique_id]["hon"].appliances:
|
||||
@@ -88,7 +88,7 @@ class HonButtonEntity(HonEntity, ButtonEntity):
|
||||
|
||||
class HonDeviceInfo(HonEntity, ButtonEntity):
|
||||
def __init__(
|
||||
self, hass: HomeAssistantType, entry: ConfigEntry, device: HonAppliance
|
||||
self, hass: HomeAssistant, entry: ConfigEntry, device: HonAppliance
|
||||
) -> None:
|
||||
super().__init__(hass, entry, device)
|
||||
|
||||
@@ -108,7 +108,7 @@ class HonDeviceInfo(HonEntity, ButtonEntity):
|
||||
|
||||
class HonDataArchive(HonEntity, ButtonEntity):
|
||||
def __init__(
|
||||
self, hass: HomeAssistantType, entry: ConfigEntry, device: HonAppliance
|
||||
self, hass: HomeAssistant, entry: ConfigEntry, device: HonAppliance
|
||||
) -> None:
|
||||
super().__init__(hass, entry, device)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user