Use new CONF_MODEL core constant (2/3) (#68831)
* Use CONF_MODEL in xiaomi_miio * Use CONF_MODEL in xiaomi Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
a29990a784
commit
014aadb299
17 changed files with 31 additions and 40 deletions
|
@ -25,7 +25,7 @@ from homeassistant.components.fan import (
|
|||
FanEntity,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import ATTR_ENTITY_ID
|
||||
from homeassistant.const import ATTR_ENTITY_ID, CONF_MODEL
|
||||
from homeassistant.core import HomeAssistant, ServiceCall, callback
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
@ -84,8 +84,6 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
DATA_KEY = "fan.xiaomi_miio"
|
||||
|
||||
CONF_MODEL = "model"
|
||||
|
||||
ATTR_MODE_NATURE = "Nature"
|
||||
ATTR_MODE_NORMAL = "Normal"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue