mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Add type hints to helpers.condition (#20266)
This commit is contained in:
committed by
Fabian Affolter
parent
5b8cb10ad7
commit
58bb6f2e99
@@ -678,7 +678,7 @@ class State:
|
||||
"State max length is 255 characters.").format(entity_id))
|
||||
|
||||
self.entity_id = entity_id.lower()
|
||||
self.state = state
|
||||
self.state = state # type: str
|
||||
self.attributes = MappingProxyType(attributes or {})
|
||||
self.last_updated = last_updated or dt_util.utcnow()
|
||||
self.last_changed = last_changed or self.last_updated
|
||||
|
||||
Reference in New Issue
Block a user