0409192e648ee60703f972567acc367560948251,homeassistant/components/binary_sensor/rfxtrx.py,,,#,25

Before Change



_LOGGER = logging.getLogger(__name__)

PLATFORM_SCHEMA = vol.Schema({
    vol.Required("platform"): rfxtrx.DOMAIN,
    vol.Optional(CONF_DEVICES, default={}): vol.All(
        dict, rfxtrx.valid_binary_sensor),
    vol.Optional(ATTR_AUTOMATIC_ADD, default=False):  cv.boolean,
}, extra=vol.ALLOW_EXTRA)


def setup_platform(hass, config, add_devices_callback, discovery_info=None):
    Setup the Binary Sensor platform to rfxtrx.

After Change



_LOGGER = logging.getLogger(__name__)

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
    vol.Optional(CONF_DEVICES, default={}): {
        cv.string: vol.Schema({
            vol.Optional(CONF_NAME): cv.string,
            vol.Optional(CONF_DEVICE_CLASS): cv.string,
            vol.Optional(CONF_FIRE_EVENT, default=False): cv.boolean,
            vol.Optional(CONF_DATA_BITS): cv.positive_int,
            vol.Optional(CONF_COMMAND_ON): cv.byte,
            vol.Optional(CONF_COMMAND_OFF): cv.byte
        })
    },
    vol.Optional(CONF_AUTOMATIC_ADD, default=False):  cv.boolean,
}, extra=vol.ALLOW_EXTRA)


def setup_platform(hass, config, add_devices_callback, discovery_info=None):
    Setup the Binary Sensor platform to rfxtrx.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 12

Instances


Project Name: home-assistant/home-assistant
Commit Name: 0409192e648ee60703f972567acc367560948251
Time: 2018-01-12
Author: mail@dahoiv.net
File Name: homeassistant/components/binary_sensor/rfxtrx.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 0409192e648ee60703f972567acc367560948251
Time: 2018-01-12
Author: mail@dahoiv.net
File Name: homeassistant/components/binary_sensor/rfxtrx.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 218e97d965964613351903ad0a9efc6601792ea7
Time: 2018-01-15
Author: mail@dahoiv.net
File Name: homeassistant/components/sensor/rfxtrx.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 0409192e648ee60703f972567acc367560948251
Time: 2018-01-12
Author: mail@dahoiv.net
File Name: homeassistant/components/sensor/rfxtrx.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 218e97d965964613351903ad0a9efc6601792ea7
Time: 2018-01-15
Author: mail@dahoiv.net
File Name: homeassistant/components/binary_sensor/rfxtrx.py
Class Name:
Method Name: