eec96ea13738fed744f4144ee28e77be0bc49185,homeassistant/components/apcupsd.py,,,#,12
Before Change
from homeassistant.util import Throttle
DOMAIN = "apcupsd"
REQUIREMENTS = ("apcaccess==0.0.4",)
CONF_HOST = "host"
CONF_PORT = "port"
CONF_TYPE = "type"
After Change
VALUE_ONLINE = "ONLINE"
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
vol.Required(CONF_HOST, default=DEFAULT_HOST): cv.string,
vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
}),
}, extra=vol.ALLOW_EXTRA)
def setup(hass, config):
Use config values to set up a function enabling status retrieval.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: home-assistant/home-assistant
Commit Name: eec96ea13738fed744f4144ee28e77be0bc49185
Time: 2016-08-30
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/apcupsd.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 6f4dd7b057b492379404c92b8f96fee20fdc1c74
Time: 2018-05-28
Author: 30130371+cdce8p@users.noreply.github.com
File Name: homeassistant/components/homekit/util.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 6a837f3aad157d72cceac4324ff5983e6f174091
Time: 2016-09-06
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/zigbee.py
Class Name:
Method Name: