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
entitiesDictionaryThe entities to start with, key is the entity ID
View on GitHub