Added tests for switch component

This commit is contained in:
Paulus Schoutsen committed 2014-11-25 00:20:36 -08:00
1 parent 8c56b415cb
commit 5cbe7bf1b8
6 files changed
+169 -2

No files matched your search

+5
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.