mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Deprecate process component
This commit is contained in:
parent
74d243ac41
commit
e32c2d2569
@ -10,7 +10,7 @@ import homeassistant as ha
|
||||
import homeassistant.bootstrap as bootstrap
|
||||
import homeassistant.loader as loader
|
||||
from homeassistant.const import (
|
||||
CONF_PLATFORM, ATTR_ENTITY_PICTURE, STATE_ON,
|
||||
CONF_PLATFORM, ATTR_ENTITY_PICTURE,
|
||||
CONF_LATITUDE, CONF_LONGITUDE)
|
||||
|
||||
DOMAIN = "demo"
|
||||
@ -52,9 +52,6 @@ def setup(hass, config):
|
||||
group.setup_group(hass, 'living room', [lights[0], lights[1], switches[0]])
|
||||
group.setup_group(hass, 'bedroom', [lights[2], switches[1]])
|
||||
|
||||
# Setup process
|
||||
hass.states.set("process.XBMC", STATE_ON)
|
||||
|
||||
# Setup device tracker
|
||||
hass.states.set("device_tracker.Paulus", "home",
|
||||
{ATTR_ENTITY_PICTURE:
|
||||
|
@ -38,9 +38,6 @@
|
||||
|
||||
return icon;
|
||||
|
||||
case "process":
|
||||
return "hardware:memory";
|
||||
|
||||
case "sun":
|
||||
return "image:wb-sunny";
|
||||
|
||||
|
@ -7,7 +7,7 @@ on the host machine.
|
||||
|
||||
Author: Markus Stenberg <fingon@iki.fi>
|
||||
"""
|
||||
|
||||
import logging
|
||||
import os
|
||||
|
||||
from homeassistant.const import STATE_ON, STATE_OFF
|
||||
@ -27,6 +27,11 @@ def setup(hass, config):
|
||||
in process list.
|
||||
"""
|
||||
|
||||
# Deprecated as of 3/7/2015
|
||||
logging.getLogger(__name__).warning(
|
||||
"This component has been deprecated and will be removed in the future."
|
||||
" Please use sensor.systemmonitor with the process type")
|
||||
|
||||
entities = {ENTITY_ID_FORMAT.format(util.slugify(pname)): pstring
|
||||
for pname, pstring in config[DOMAIN].items()}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user