Move Hub and Entity to separate module in ADS (#125665)

* Move Hub and Entity to separate module in ADS

* Missed one
This commit is contained in:
epenet
2024-09-10 15:02:09 +02:00
committed by GitHub
parent 7f7db4efb6
commit 745a05d984
8 changed files with 225 additions and 213 deletions

View File

@@ -15,14 +15,8 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType, StateType
from .. import ads
from . import (
ADS_TYPEMAP,
CONF_ADS_FACTOR,
CONF_ADS_TYPE,
CONF_ADS_VAR,
STATE_KEY_STATE,
AdsEntity,
)
from . import ADS_TYPEMAP, CONF_ADS_FACTOR, CONF_ADS_TYPE, CONF_ADS_VAR, STATE_KEY_STATE
from .entity import AdsEntity
DEFAULT_NAME = "ADS sensor"
PLATFORM_SCHEMA = SENSOR_PLATFORM_SCHEMA.extend(