e8c6e4d561dcac5f8803365a9f9dfa82f9e352e1,homeassistant/components/sensor/snmp.py,,,#,16

Before Change


CONF_COMMUNITY = "community"
CONF_BASEOID = "baseoid"

PLATFORM_SCHEMA = vol.Schema({
    vol.Required(CONF_PLATFORM): "snmp",
    vol.Optional(CONF_NAME): vol.Coerce(str),
    vol.Required(CONF_HOST): vol.Coerce(str),
    vol.Optional(CONF_PORT): vol.Coerce(int),
    vol.Optional(CONF_COMMUNITY): vol.Coerce(str),
    vol.Required(CONF_BASEOID): vol.Coerce(str),
    vol.Optional(ATTR_UNIT_OF_MEASUREMENT): vol.Coerce(str),
})

// Return cached results if last scan was less then this time ago.
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=10)

After Change


PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
    vol.Required(CONF_BASEOID): cv.string,
    vol.Optional(CONF_COMMUNITY, default=DEFAULT_COMMUNITY): cv.string,
    vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,
    vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
    vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
    vol.Optional(CONF_UNIT_OF_MEASUREMENT): cv.string,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: e8c6e4d561dcac5f8803365a9f9dfa82f9e352e1
Time: 2016-08-20
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/snmp.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: e8c6e4d561dcac5f8803365a9f9dfa82f9e352e1
Time: 2016-08-20
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/snmp.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 0f8e48c26df1ceb03c030b988a1d3d9bc3492f5e
Time: 2017-12-03
Author: bonzini@gnu.org
File Name: homeassistant/components/alarm_control_panel/manual_mqtt.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 0f8e48c26df1ceb03c030b988a1d3d9bc3492f5e
Time: 2017-12-03
Author: bonzini@gnu.org
File Name: homeassistant/components/alarm_control_panel/manual.py
Class Name:
Method Name: