1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Added tests for switch component

This commit is contained in:
Paulus Schoutsen
2014-11-25 00:20:36 -08:00
parent 8c56b415cb
commit 5cbe7bf1b8
6 changed files with 169 additions and 2 deletions

View File

@@ -63,6 +63,11 @@ def prepare(hass):
'custom_components.{}'.format(fil[0:-3]))
def set_component(comp_name, component):
""" Sets a component in the cache. """
_COMPONENT_CACHE[comp_name] = component
def get_component(comp_name):
""" Tries to load specified component.
Looks in config dir first, then built-in components.