Update docstrings (#7405)
* Update docstrings * Fix lint issues * Update docstrings
This commit is contained in:
1 parent
12c8266942
commit
4d52b0ecd5
81 files changed
+375
-409
No files matched your search
@@ -15,10 +15,10 @@ from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.entity_component import EntityComponent
|
||||
from homeassistant.helpers.restore_state import async_get_last_state
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
DOMAIN = 'input_select'
|
||||
ENTITY_ID_FORMAT = DOMAIN + '.{}'
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
CONF_INITIAL = 'initial'
|
||||
CONF_OPTIONS = 'options'
|
||||
@@ -56,7 +56,7 @@ SERVICE_SET_OPTIONS_SCHEMA = vol.Schema({
|
||||
|
||||
|
||||
def _cv_input_select(cfg):
|
||||
"""Configuration validation helper for input select (voluptuous)."""
|
||||
"""Configure validation helper for input select (voluptuous)."""
|
||||
options = cfg[CONF_OPTIONS]
|
||||
initial = cfg.get(CONF_INITIAL)
|
||||
if initial is not None and initial not in options:
|
||||
|
||||
Reference in new issue
Block a user