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