84053103f0ff7cfecb77303ea588d89420f626d3,homeassistant/components/sensor/fedex.py,,,#,22
Before Change
STATUS_DELIVERED = "delivered"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
vol.Optional(CONF_NAME): cv.string,
vol.Optional(CONF_UPDATE_INTERVAL, default=timedelta(seconds=1800)):
vol.All(cv.time_period, cv.positive_timedelta),
})
def setup_platform(hass, config, add_entities, discovery_info=None):
Set up the Fedex platform.
After Change
STATUS_DELIVERED = "delivered"
SCAN_INTERVAL = timedelta(seconds=1800)
PLATFORM_SCHEMA = vol.All(
PLATFORM_SCHEMA.extend({
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
vol.Optional(CONF_NAME): cv.string,
vol.Optional(CONF_UPDATE_INTERVAL):
vol.All(cv.time_period, cv.positive_timedelta),
}),
cv.deprecated(
CONF_UPDATE_INTERVAL,
replacement_key=CONF_SCAN_INTERVAL,
invalidation_version=CONF_UPDATE_INTERVAL_INVALIDATION_VERSION,
default=SCAN_INTERVAL
)
)
def setup_platform(hass, config, add_entities, discovery_info=None):
Set up the Fedex platform.
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 8
Instances
Project Name: home-assistant/home-assistant
Commit Name: 84053103f0ff7cfecb77303ea588d89420f626d3
Time: 2019-02-16
Author: rohan@rohankapoor.com
File Name: homeassistant/components/sensor/fedex.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 84053103f0ff7cfecb77303ea588d89420f626d3
Time: 2019-02-16
Author: rohan@rohankapoor.com
File Name: homeassistant/components/sensor/darksky.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 481439d387a5f7c3cf3876c0ab3ad2adab16d0f7
Time: 2019-02-16
Author: rohan@rohankapoor.com
File Name: homeassistant/components/sensor/broadlink.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 481439d387a5f7c3cf3876c0ab3ad2adab16d0f7
Time: 2019-02-16
Author: rohan@rohankapoor.com
File Name: homeassistant/components/sensor/ups.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 481439d387a5f7c3cf3876c0ab3ad2adab16d0f7
Time: 2019-02-16
Author: rohan@rohankapoor.com
File Name: homeassistant/components/sensor/darksky.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 84053103f0ff7cfecb77303ea588d89420f626d3
Time: 2019-02-16
Author: rohan@rohankapoor.com
File Name: homeassistant/components/sensor/ups.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 84053103f0ff7cfecb77303ea588d89420f626d3
Time: 2019-02-16
Author: rohan@rohankapoor.com
File Name: homeassistant/components/sensor/broadlink.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 481439d387a5f7c3cf3876c0ab3ad2adab16d0f7
Time: 2019-02-16
Author: rohan@rohankapoor.com
File Name: homeassistant/components/sensor/fedex.py
Class Name:
Method Name: