755a2a8291442e36b12c047716978e1fd9ad74a9,homeassistant/components/mqtt_statestream.py,,,#,16
Before Change
DOMAIN = "mqtt_statestream"
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
vol.Required(CONF_BASE_TOPIC): valid_publish_topic
})
}, extra=vol.ALLOW_EXTRA)
After Change
import homeassistant.helpers.config_validation as cv
CONF_BASE_TOPIC = "base_topic"
CONF_PUBLISH_ATTRIBUTES = "publish_attributes"
CONF_PUBLISH_TIMESTAMPS = "publish_timestamps"
DEPENDENCIES = ["mqtt"]
DOMAIN = "mqtt_statestream"
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
vol.Required(CONF_BASE_TOPIC): valid_publish_topic,
vol.Optional(CONF_PUBLISH_ATTRIBUTES, default=False): cv.boolean,
vol.Optional(CONF_PUBLISH_TIMESTAMPS, default=False): cv.boolean
})
}, extra=vol.ALLOW_EXTRA)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: home-assistant/home-assistant
Commit Name: 755a2a8291442e36b12c047716978e1fd9ad74a9
Time: 2017-10-02
Author: m.w.white@gmail.com
File Name: homeassistant/components/mqtt_statestream.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: fdcf332a8aa809762c993bb41afbb0ecd867928f
Time: 2018-01-15
Author: heiko.thiery@gmail.com
File Name: homeassistant/components/sensor/lacrosse.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 2486c9af35f0ef65d7af99771a1c934931033582
Time: 2017-09-24
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/notify/simplepush.py
Class Name:
Method Name: