4f1712c93317cb8acab1728000d2bec37c0c283f,homeassistant/components/sensor/glances.py,,,#,16
Before Change
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle
_LOGGER = logging.getLogger(__name__)
_RESOURCE = "/api/2/all"
CONF_HOST = "host"
CONF_PORT = "61208"
After Change
"process_sleeping": ["Sleeping", None]
}
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(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_RESOURCES, default=["disk_use"]):
vol.All(cv.ensure_list, [vol.In(SENSOR_TYPES)]),
})
_LOGGER = logging.getLogger(__name__)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: home-assistant/home-assistant
Commit Name: 4f1712c93317cb8acab1728000d2bec37c0c283f
Time: 2016-08-19
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/glances.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 0582bf7746e728d0b7633937cb632e4dc6bc9179
Time: 2020-09-22
Author: DaAwesomeP@users.noreply.github.com
File Name: homeassistant/components/firmata/const.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 6a239bf18a7e010b09e7606fd09afc03a06f1691
Time: 2015-07-30
Author: rkabadi06@gmail.com
File Name: homeassistant/components/switch/edimax.py
Class Name:
Method Name: setup_platform