Skip to content

Commit

Permalink
Replace deprecated types (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
lymanepp authored May 20, 2024
1 parent 6482e19 commit fd4f628
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions custom_components/virtual/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_ENTITY_ID, ATTR_DEVICE_CLASS, STATE_ON
from homeassistant.core import HomeAssistant
from homeassistant.helpers.config_validation import PLATFORM_SCHEMA
from homeassistant.helpers.typing import HomeAssistantType

from . import get_entity_from_domain, get_entity_configs
from .const import *
Expand Down Expand Up @@ -44,7 +44,7 @@


async def async_setup_entry(
hass: HomeAssistantType,
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: Callable[[list], None],
) -> None:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/virtual/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
STATE_CLOSED,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.config_validation import PLATFORM_SCHEMA
from homeassistant.helpers.typing import HomeAssistantType

from . import get_entity_configs
from .const import *
Expand All @@ -42,7 +42,7 @@


async def async_setup_entry(
hass: HomeAssistantType,
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: Callable[[list], None],
) -> None:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/virtual/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_ENTITY_ID
from homeassistant.core import HomeAssistant
from homeassistant.helpers.config_validation import PLATFORM_SCHEMA
from homeassistant.helpers.typing import HomeAssistantType

from . import get_entity_from_domain, get_entity_configs
from .const import *
Expand All @@ -43,7 +43,7 @@


async def async_setup_entry(
hass: HomeAssistantType,
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: Callable[[list], None],
) -> None:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/virtual/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
FanEntityFeature,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.config_validation import (PLATFORM_SCHEMA)
from homeassistant.helpers.typing import HomeAssistantType

from . import get_entity_configs
from .const import *
Expand Down Expand Up @@ -56,7 +56,7 @@


async def async_setup_entry(
hass: HomeAssistantType,
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: Callable[[list], None],
) -> None:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/virtual/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import STATE_ON
from homeassistant.core import HomeAssistant
from homeassistant.helpers.config_validation import PLATFORM_SCHEMA
from homeassistant.helpers.typing import HomeAssistantType

from . import get_entity_configs
from .const import *
Expand Down Expand Up @@ -84,7 +84,7 @@


async def async_setup_entry(
hass: HomeAssistantType,
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: Callable[[list], None],
) -> None:
Expand Down
6 changes: 3 additions & 3 deletions custom_components/virtual/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
LockEntity,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.helpers.config_validation import PLATFORM_SCHEMA
from homeassistant.const import STATE_LOCKED
from homeassistant.core import HomeAssistant
from homeassistant.helpers.config_validation import PLATFORM_SCHEMA
from homeassistant.helpers.event import track_point_in_time
from homeassistant.helpers.typing import HomeAssistantType

from . import get_entity_configs
from .const import *
Expand Down Expand Up @@ -49,7 +49,7 @@


async def async_setup_entry(
hass: HomeAssistantType,
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: Callable[[list], None],
) -> None:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/virtual/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
UnitOfPressure,
UnitOfVolume,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.typing import HomeAssistantType

from . import get_entity_from_domain, get_entity_configs
from .const import *
Expand Down Expand Up @@ -94,7 +94,7 @@


async def async_setup_entry(
hass: HomeAssistantType,
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: Callable[[list], None],
) -> None:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/virtual/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
ATTR_DEVICE_CLASS,
STATE_ON,
)
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant.core import HomeAssistant

from . import get_entity_configs
from .const import *
Expand All @@ -41,7 +41,7 @@


async def async_setup_entry(
hass: HomeAssistantType,
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: Callable[[list], None],
) -> None:
Expand Down

0 comments on commit fd4f628

Please sign in to comment.