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

@@ -38,18 +38,13 @@ from homeassistant.const import (
)
import homeassistant.helpers.config_validation as cv
from . import (
BASE_PLATFORM_SCHEMA,
TuyaDevice,
LocalTuyaEntity,
prepare_setup_entities,
import_from_yaml,
)
from . import BASE_PLATFORM_SCHEMA, import_from_yaml
from .const import (
CONF_OPEN_CMD,
CONF_CLOSE_CMD,
CONF_STOP_CMD,
)
from .common import LocalTuyaEntity, TuyaDevice, prepare_setup_entities
_LOGGER = logging.getLogger(__name__)