iOS/Sources/App/Onboarding/API/Steps/OnboardingAuthStepSensors.s...

17 lines
375 B
Swift

import HAKit
import PromiseKit
import Shared
struct OnboardingAuthStepSensors: OnboardingAuthPostStep {
var api: HomeAssistantAPI
var sender: UIViewController
static var supportedPoints: Set<OnboardingAuthStepPoint> {
Set([.afterRegister])
}
func perform(point: OnboardingAuthStepPoint) -> Promise<Void> {
api.registerSensors()
}
}