Updated example component with more examples

This commit is contained in:
Paulus Schoutsen 2014-12-08 22:06:57 -08:00
parent 1f582cbeec
commit e7dff308ef
2 changed files with 102 additions and 14 deletions

View file

@ -207,7 +207,7 @@ class HomeAssistant(object):
def _process_match_param(parameter):
""" Wraps parameter in a list if it is not one and returns it. """
if not parameter or parameter == MATCH_ALL:
if parameter is None or parameter == MATCH_ALL:
return MATCH_ALL
elif isinstance(parameter, list):
return parameter