Ensure entity ids are always lower case

This commit is contained in:
Paulus Schoutsen 2015-02-06 00:00:39 -08:00
parent 45dd8cbc3f
commit 36544ee088

View File

@ -447,7 +447,7 @@ class State(object):
"Invalid entity id encountered: {}. "
"Format should be <domain>.<object_id>").format(entity_id))
self.entity_id = entity_id
self.entity_id = entity_id.lower()
self.state = state
self.attributes = attributes or {}
self.last_updated = dt.datetime.now()