mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Ensure entity ids are always lower case
This commit is contained in:
parent
45dd8cbc3f
commit
36544ee088
@ -447,7 +447,7 @@ class State(object):
|
|||||||
"Invalid entity id encountered: {}. "
|
"Invalid entity id encountered: {}. "
|
||||||
"Format should be <domain>.<object_id>").format(entity_id))
|
"Format should be <domain>.<object_id>").format(entity_id))
|
||||||
|
|
||||||
self.entity_id = entity_id
|
self.entity_id = entity_id.lower()
|
||||||
self.state = state
|
self.state = state
|
||||||
self.attributes = attributes or {}
|
self.attributes = attributes or {}
|
||||||
self.last_updated = dt.datetime.now()
|
self.last_updated = dt.datetime.now()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user