Add shared code to a common module

This commit is contained in:
Pierre Ståhl
2020-09-23 19:58:24 +02:00
parent 98612a0d70
commit fefee6944f
7 changed files with 201 additions and 197 deletions

View File

@@ -43,9 +43,6 @@ import homeassistant.helpers.config_validation as cv
from . import (
BASE_PLATFORM_SCHEMA,
TuyaDevice,
LocalTuyaEntity,
prepare_setup_entities,
import_from_yaml,
)
from .const import (
@@ -56,6 +53,7 @@ from .const import (
CONF_CURRENT_CONSUMPTION,
CONF_VOLTAGE,
)
from .common import LocalTuyaEntity, TuyaDevice, prepare_setup_entities
_LOGGER = logging.getLogger(__name__)