Update file header (#21061)
* Update file header * Fix lint issue * Fix lint issue
This commit is contained in:
1 parent
f4b2573c4b
commit
3736120c6a
130 files changed
+511
-1058
No files matched your search
@@ -1,17 +1,9 @@
|
||||
"""IHC binary sensor platform.
|
||||
|
||||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/binary_sensor.ihc/
|
||||
"""
|
||||
from homeassistant.components.binary_sensor import (
|
||||
BinarySensorDevice)
|
||||
from homeassistant.components.ihc import (
|
||||
IHC_DATA, IHC_CONTROLLER, IHC_INFO)
|
||||
from homeassistant.components.ihc.const import (
|
||||
CONF_INVERTING)
|
||||
"""Support for IHC binary sensors."""
|
||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||
from homeassistant.components.ihc import IHC_CONTROLLER, IHC_DATA, IHC_INFO
|
||||
from homeassistant.components.ihc.const import CONF_INVERTING
|
||||
from homeassistant.components.ihc.ihcdevice import IHCDevice
|
||||
from homeassistant.const import (
|
||||
CONF_TYPE)
|
||||
from homeassistant.const import CONF_TYPE
|
||||
|
||||
DEPENDENCIES = ['ihc']
|
||||
|
||||
@@ -31,10 +23,9 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
info = hass.data[ihc_key][IHC_INFO]
|
||||
ihc_controller = hass.data[ihc_key][IHC_CONTROLLER]
|
||||
|
||||
sensor = IHCBinarySensor(ihc_controller, name, ihc_id, info,
|
||||
product_cfg.get(CONF_TYPE),
|
||||
product_cfg[CONF_INVERTING],
|
||||
product)
|
||||
sensor = IHCBinarySensor(
|
||||
ihc_controller, name, ihc_id, info, product_cfg.get(CONF_TYPE),
|
||||
product_cfg[CONF_INVERTING], product)
|
||||
devices.append(sensor)
|
||||
add_entities(devices)
|
||||
|
||||
|
||||
Reference in new issue
Block a user