mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Move knx base entity to separate module (#126102)
* Move knx base entity to separate module * one more
This commit is contained in:
parent
6eab5e3e14
commit
a3155b2ad7
@ -24,7 +24,7 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import ATTR_COUNTER, ATTR_SOURCE, KNX_MODULE_KEY
|
from .const import ATTR_COUNTER, ATTR_SOURCE, KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
from .schema import BinarySensorSchema
|
from .schema import BinarySensorSchema
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import CONF_PAYLOAD_LENGTH, KNX_ADDRESS, KNX_MODULE_KEY
|
from .const import CONF_PAYLOAD_LENGTH, KNX_ADDRESS, KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
|
@ -32,7 +32,7 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import CONTROLLER_MODES, CURRENT_HVAC_ACTIONS, KNX_MODULE_KEY
|
from .const import CONTROLLER_MODES, CURRENT_HVAC_ACTIONS, KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
from .schema import ClimateSchema
|
from .schema import ClimateSchema
|
||||||
|
|
||||||
ATTR_COMMAND_VALUE = "command_value"
|
ATTR_COMMAND_VALUE = "command_value"
|
||||||
|
@ -27,7 +27,7 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import KNX_MODULE_KEY
|
from .const import KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
from .schema import CoverSchema
|
from .schema import CoverSchema
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ from .const import (
|
|||||||
KNX_ADDRESS,
|
KNX_ADDRESS,
|
||||||
KNX_MODULE_KEY,
|
KNX_MODULE_KEY,
|
||||||
)
|
)
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
|
@ -31,7 +31,7 @@ from .const import (
|
|||||||
KNX_ADDRESS,
|
KNX_ADDRESS,
|
||||||
KNX_MODULE_KEY,
|
KNX_MODULE_KEY,
|
||||||
)
|
)
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
|
@ -21,7 +21,7 @@ from homeassistant.util.scaling import int_states_in_range
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import KNX_ADDRESS, KNX_MODULE_KEY
|
from .const import KNX_ADDRESS, KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
from .schema import FanSchema
|
from .schema import FanSchema
|
||||||
|
|
||||||
DEFAULT_PERCENTAGE: Final = 50
|
DEFAULT_PERCENTAGE: Final = 50
|
||||||
|
@ -30,7 +30,7 @@ import homeassistant.util.color as color_util
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import CONF_SYNC_STATE, DOMAIN, KNX_ADDRESS, KNX_MODULE_KEY, ColorTempModes
|
from .const import CONF_SYNC_STATE, DOMAIN, KNX_ADDRESS, KNX_MODULE_KEY, ColorTempModes
|
||||||
from .knx_entity import KnxUiEntity, KnxUiEntityPlatformController, KnxYamlEntity
|
from .entity import KnxUiEntity, KnxUiEntityPlatformController, KnxYamlEntity
|
||||||
from .schema import LightSchema
|
from .schema import LightSchema
|
||||||
from .storage.const import (
|
from .storage.const import (
|
||||||
CONF_COLOR_TEMP_MAX,
|
CONF_COLOR_TEMP_MAX,
|
||||||
|
@ -20,7 +20,7 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import DOMAIN, KNX_ADDRESS, KNX_MODULE_KEY
|
from .const import DOMAIN, KNX_ADDRESS, KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
|
|
||||||
|
|
||||||
async def async_get_service(
|
async def async_get_service(
|
||||||
|
@ -24,7 +24,7 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import CONF_RESPOND_TO_READ, CONF_STATE_ADDRESS, KNX_ADDRESS, KNX_MODULE_KEY
|
from .const import CONF_RESPOND_TO_READ, CONF_STATE_ADDRESS, KNX_ADDRESS, KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
from .schema import NumberSchema
|
from .schema import NumberSchema
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import KNX_ADDRESS, KNX_MODULE_KEY
|
from .const import KNX_ADDRESS, KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
from .schema import SceneSchema
|
from .schema import SceneSchema
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ from .const import (
|
|||||||
KNX_ADDRESS,
|
KNX_ADDRESS,
|
||||||
KNX_MODULE_KEY,
|
KNX_MODULE_KEY,
|
||||||
)
|
)
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
from .schema import SelectSchema
|
from .schema import SelectSchema
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ from homeassistant.util.enum import try_parse_enum
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import ATTR_SOURCE, KNX_MODULE_KEY
|
from .const import ATTR_SOURCE, KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
from .schema import SensorSchema
|
from .schema import SensorSchema
|
||||||
|
|
||||||
SCAN_INTERVAL = timedelta(seconds=10)
|
SCAN_INTERVAL = timedelta(seconds=10)
|
||||||
|
@ -35,7 +35,7 @@ from .const import (
|
|||||||
KNX_ADDRESS,
|
KNX_ADDRESS,
|
||||||
KNX_MODULE_KEY,
|
KNX_MODULE_KEY,
|
||||||
)
|
)
|
||||||
from .knx_entity import KnxUiEntity, KnxUiEntityPlatformController, KnxYamlEntity
|
from .entity import KnxUiEntity, KnxUiEntityPlatformController, KnxYamlEntity
|
||||||
from .schema import SwitchSchema
|
from .schema import SwitchSchema
|
||||||
from .storage.const import (
|
from .storage.const import (
|
||||||
CONF_DEVICE_INFO,
|
CONF_DEVICE_INFO,
|
||||||
|
@ -24,7 +24,7 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import CONF_RESPOND_TO_READ, CONF_STATE_ADDRESS, KNX_ADDRESS, KNX_MODULE_KEY
|
from .const import CONF_RESPOND_TO_READ, CONF_STATE_ADDRESS, KNX_ADDRESS, KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
|
@ -30,7 +30,7 @@ from .const import (
|
|||||||
KNX_ADDRESS,
|
KNX_ADDRESS,
|
||||||
KNX_MODULE_KEY,
|
KNX_MODULE_KEY,
|
||||||
)
|
)
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
|
@ -21,7 +21,7 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
|
|
||||||
from . import KNXModule
|
from . import KNXModule
|
||||||
from .const import KNX_MODULE_KEY
|
from .const import KNX_MODULE_KEY
|
||||||
from .knx_entity import KnxYamlEntity
|
from .entity import KnxYamlEntity
|
||||||
from .schema import WeatherSchema
|
from .schema import WeatherSchema
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user