File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 88from homeassistant .components .binary_sensor import (
99 BinarySensorDevice , PLATFORM_SCHEMA , DEVICE_CLASSES_SCHEMA )
1010from homeassistant .const import STATE_UNKNOWN , CONF_NAME , CONF_TYPE
11+
12+ from ..ihc .const import *
1113from ..ihc import get_ihc_platform
1214from ..ihc .ihcdevice import IHCDevice
1315
1416DEPENDENCIES = ['ihc' ]
1517
16- CONF_AUTOSETUP = 'autosetup'
17- CONF_IDS = 'ids'
18- CONF_INVERTING = 'inverting'
19-
2018PLATFORM_SCHEMA = PLATFORM_SCHEMA .extend ({
2119 vol .Optional (CONF_AUTOSETUP , default = 'False' ) : cv .boolean ,
2220 vol .Optional (CONF_IDS ) : {
Original file line number Diff line number Diff line change 22IHC platform constants
33"""
44
5+ CONF_AUTOSETUP = 'autosetup'
6+ CONF_IDS = 'ids'
7+ CONF_INVERTING = 'inverting'
8+
9+
510SERVICE_SET_RUNTIME_VALUE_BOOL = "set_runtime_value_bool"
611SERVICE_SET_RUNTIME_VALUE_INT = "set_runtime_value_int"
712SERVICE_SET_RUNTIME_VALUE_FLOAT = "set_runtime_value_float"
Original file line number Diff line number Diff line change 88 ATTR_BRIGHTNESS , SUPPORT_BRIGHTNESS , PLATFORM_SCHEMA , Light )
99import homeassistant .helpers .config_validation as cv
1010from homeassistant .const import STATE_UNKNOWN
11+
12+ from ..ihc .const import *
1113from ..ihc import get_ihc_platform
1214from ..ihc .ihcdevice import IHCDevice
1315
1416DEPENDENCIES = ['ihc' ]
1517
16- CONF_AUTOSETUP = 'autosetup'
17- CONF_IDS = 'ids'
18-
1918PLATFORM_SCHEMA = PLATFORM_SCHEMA .extend ({
2019 vol .Optional (CONF_AUTOSETUP , default = 'False' ): cv .boolean ,
2120 vol .Optional (CONF_IDS ): vol .Schema (vol .Required ({cv .string : cv .string }))
Original file line number Diff line number Diff line change 88import homeassistant .helpers .config_validation as cv
99from homeassistant .helpers .entity import Entity
1010from homeassistant .const import CONF_NAME , CONF_TYPE , CONF_UNIT_OF_MEASUREMENT
11+
12+ from ..ihc .const import *
1113from ..ihc import get_ihc_platform
1214from ..ihc .ihcdevice import IHCDevice
1315
1416DEPENDENCIES = ['ihc' ]
1517
16- CONF_AUTOSETUP = 'autosetup'
17- CONF_IDS = 'ids'
18-
1918PLATFORM_SCHEMA = PLATFORM_SCHEMA .extend ({
2019 vol .Optional (CONF_AUTOSETUP , default = 'False' ) : cv .boolean ,
2120 vol .Optional (CONF_IDS ) : {
Original file line number Diff line number Diff line change 66import voluptuous as vol
77import homeassistant .helpers .config_validation as cv
88from homeassistant .components .switch import (SwitchDevice , PLATFORM_SCHEMA )
9+
10+ from ..ihc .const import *
911from ..ihc import get_ihc_platform
1012from ..ihc .ihcdevice import IHCDevice
1113
1214DEPENDENCIES = ['ihc' ]
1315
14- CONF_AUTOSETUP = 'autosetup'
15- CONF_IDS = 'ids'
16-
1716PLATFORM_SCHEMA = PLATFORM_SCHEMA .extend ({
1817 vol .Optional (CONF_AUTOSETUP , default = 'False' ): cv .boolean ,
1918 vol .Optional (CONF_IDS ): vol .Schema (vol .Required ({cv .string : cv .string }))
You can’t perform that action at this time.
0 commit comments