From ca49a2aa68ca18324389c2367964c8d0bdd71bfa Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 11 Jan 2015 09:55:45 -0800 Subject: [PATCH] Use tuples instead of lists internally --- homeassistant/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/__init__.py b/homeassistant/__init__.py index 34e8b393bcc6e1..e889282fae4c30 100644 --- a/homeassistant/__init__.py +++ b/homeassistant/__init__.py @@ -223,7 +223,7 @@ def _process_match_param(parameter): elif isinstance(parameter, list): return parameter else: - return [parameter] + return (parameter,) def _matcher(subject, pattern): @@ -589,7 +589,7 @@ def track_change(self, entity_ids, action, from_state=None, to_state=None): # Ensure it is a lowercase list with entity ids we want to match on if isinstance(entity_ids, str): - entity_ids = [entity_ids.lower()] + entity_ids = (entity_ids.lower(),) else: entity_ids = [entity_id.lower() for entity_id in entity_ids]