04d31e4ef4db031d8d7260ad104d342bae770075,homeassistant/components/cover/rpi_gpio.py,,,#,19
Before Change
})
]
)
PLATFORM_SCHEMA = vol.Schema({
"platform": str,
vol.Required("covers"): _COVERS_SCHEMA,
vol.Optional(STATE_PULL_MODE, default=DEFAULT_PULL_MODE): cv.string,
vol.Optional(RELAY_TIME, default=DEFAULT_RELAY_TIME): vol.Coerce(int),
})
// pylint: disable=unused-argument
After Change
_LOGGER = logging.getLogger(__name__)
CONF_COVERS = "covers"
CONF_RELAY_PIN = "relay_pin"
CONF_RELAY_TIME = "relay_time"
CONF_STATE_PIN = "state_pin"
CONF_STATE_PULL_MODE = "state_pull_mode"
DEFAULT_RELAY_TIME = .2
DEFAULT_STATE_PULL_MODE = "UP"
DEPENDENCIES = ["rpi_gpio"]
_COVERS_SCHEMA = vol.All(
cv.ensure_list,
[
vol.Schema({
CONF_NAME: cv.string,
CONF_RELAY_PIN: cv.positive_int,
CONF_STATE_PIN: cv.positive_int,
})
]
)
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_COVERS): _COVERS_SCHEMA,
vol.Optional(CONF_STATE_PULL_MODE, default=DEFAULT_STATE_PULL_MODE):
cv.string,
vol.Optional(CONF_RELAY_TIME, default=DEFAULT_RELAY_TIME): cv.positive_int,
})
// pylint: disable=unused-argument
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: home-assistant/home-assistant
Commit Name: 04d31e4ef4db031d8d7260ad104d342bae770075
Time: 2016-09-17
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/cover/rpi_gpio.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 8f774e9c531555cdf31d2ff5f955a9e27ad85404
Time: 2017-11-02
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/xiaomi_aqara.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 1e92417804ddc8c5ea2eb9a5d857d0a8ce3e25ab
Time: 2017-11-03
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/xiaomi_aqara.py
Class Name:
Method Name: