HACachedStates
public struct HACachedStates
Cached version of all entity states
-
All entities
Declaration
Swift
public var all: Set<HAEntity>
-
All entities, keyed by their entityId
Declaration
Swift
public subscript(entityID: String) -> HAEntity? { get set }
-
Create a cached state
Declaration
Swift
public init(entitiesDictionary: [String : HAEntity])
Parameters
entitiesDictionary
The entities to start with, key is the entity ID