mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-16 10:21:16 -06:00
- Stops caching of sensor values and now sends them to the server regardless if we think they have changed. Fixes #1473. The sensor container was (a) prone to issues (as it could not fully capture network semantics) and (b) not updated for multi-server support. - Moves all intent handling that I can into the app for iOS 14+ / macOS 11+. The only intent that must be in the extension is the focus intent, which now strictly updates just the focus sensor on macOS, since it did not have access to all sensor values. Fixes #1921.
9 lines
180 B
Swift
9 lines
180 B
Swift
import Intents
|
|
import Shared
|
|
|
|
class IntentHandler: INExtension {
|
|
override func handler(for intent: INIntent) -> Any {
|
|
IntentHandlerFactory.handler(for: intent)
|
|
}
|
|
}
|