Use constants from const.py (#21068)
* Use constants from const.py * Fix lint issues
This commit is contained in:
parent
9d3eaada27
commit
2d2c6cf4a1
21 changed files with 105 additions and 188 deletions
|
@ -1,16 +1,11 @@
|
|||
"""
|
||||
Support for Insteon covers via PowerLinc Modem.
|
||||
|
||||
For more details about this component, please refer to the documentation at
|
||||
https://home-assistant.io/components/cover.insteon/
|
||||
"""
|
||||
"""Support for Insteon covers via PowerLinc Modem."""
|
||||
import logging
|
||||
import math
|
||||
|
||||
from homeassistant.components.cover import (
|
||||
ATTR_POSITION, SUPPORT_CLOSE, SUPPORT_OPEN, SUPPORT_SET_POSITION,
|
||||
CoverDevice)
|
||||
from homeassistant.components.insteon import InsteonEntity
|
||||
from homeassistant.components.cover import (CoverDevice, ATTR_POSITION,
|
||||
SUPPORT_OPEN, SUPPORT_CLOSE,
|
||||
SUPPORT_SET_POSITION)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -18,8 +13,8 @@ DEPENDENCIES = ['insteon']
|
|||
SUPPORTED_FEATURES = SUPPORT_OPEN | SUPPORT_CLOSE | SUPPORT_SET_POSITION
|
||||
|
||||
|
||||
async def async_setup_platform(hass, config, async_add_entities,
|
||||
discovery_info=None):
|
||||
async def async_setup_platform(
|
||||
hass, config, async_add_entities, discovery_info=None):
|
||||
"""Set up the Insteon platform."""
|
||||
if not discovery_info:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue