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:
epenet 2022-03-29 11:12:43 +02:00 committed by GitHub
parent a29990a784
commit 014aadb299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 31 additions and 40 deletions

View file

@ -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"