Use constants from const.py (#21068)

* Use constants from const.py

* Fix lint issues
This commit is contained in:
Fabian Affolter authored and GitHub committed 2019-02-19 14:09:06 +01:00
1 parent 9d3eaada27
commit 2d2c6cf4a1
21 files changed
+105 -188

No files matched your search

+3 -8
View File
@@ -1,9 +1,4 @@
"""
Support for INSTEON dimmers via PowerLinc Modem.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/sensor.insteon/
"""
"""Support for INSTEON dimmers via PowerLinc Modem."""
import logging
from homeassistant.components.insteon import InsteonEntity
@@ -14,8 +9,8 @@ DEPENDENCIES = ['insteon']
_LOGGER = logging.getLogger(__name__)
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 device class for the hass platform."""
insteon_modem = hass.data['insteon'].get('modem')