Skip to content

Commit

Permalink
Add a route for sending oneshot location
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Sep 23, 2016
1 parent a4c529f commit d90a176
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HomeAssistant/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
case "fire_event": // homeassistant://fire_event/custom_event?entity_id=device_tracker.entity
let _ = HomeAssistantAPI.sharedInstance.CreateEvent(eventType: url.pathComponents[1], eventData: serviceData)
break
case "send_location": // homeassistant://send_location/
let _ = HomeAssistantAPI.sharedInstance.sendOneshotLocation()
break
default:
print("Can't route", url.host)
}
Expand Down

0 comments on commit d90a176

Please sign in to comment.