venue(matchingHomeUniqueIdentifier:)
Returns an energy venue for the given HomeKit identifier.
Declaration
static func venue(matchingHomeUniqueIdentifier: UUID) async throws -> EnergyVenueParameters
- matchingHomeUniqueIdentifier:
A HomeKit identifier for the requested venue.
Discussion
This method throws EnergyKitError.venueUnavailable if the framework can’t provide the requested venue.