Yolink device model adaptation (#122824)

This commit is contained in:
Matrix 2024-08-02 21:57:15 +08:00 committed by GitHub
parent 115303faf5
commit a4aefe43dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 1 deletions

View file

@ -48,7 +48,15 @@ from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.util import percentage
from .const import DEV_MODEL_TH_SENSOR_YS8017_EC, DEV_MODEL_TH_SENSOR_YS8017_UC, DOMAIN
from .const import (
DEV_MODEL_TH_SENSOR_YS8004_EC,
DEV_MODEL_TH_SENSOR_YS8004_UC,
DEV_MODEL_TH_SENSOR_YS8014_EC,
DEV_MODEL_TH_SENSOR_YS8014_UC,
DEV_MODEL_TH_SENSOR_YS8017_EC,
DEV_MODEL_TH_SENSOR_YS8017_UC,
DOMAIN,
)
from .coordinator import YoLinkCoordinator
from .entity import YoLinkEntity
@ -109,6 +117,10 @@ MCU_DEV_TEMPERATURE_SENSOR = [
]
NONE_HUMIDITY_SENSOR_MODELS = [
DEV_MODEL_TH_SENSOR_YS8004_EC,
DEV_MODEL_TH_SENSOR_YS8004_UC,
DEV_MODEL_TH_SENSOR_YS8014_EC,
DEV_MODEL_TH_SENSOR_YS8014_UC,
DEV_MODEL_TH_SENSOR_YS8017_UC,
DEV_MODEL_TH_SENSOR_YS8017_EC,
]