Skip to content

Commit

Permalink
make device_tracker instead of sensor (breaking change)
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Feb 21, 2019
1 parent a9ac6ed commit 4bb05cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/defaultapps/people.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (a *PeopleApp) setState(person string, state string, devices []*client.Hass
log.Debugln(entity)
}
func getDeviceID(person string) string {
return "sensor." + strings.ToLower(person) + "_presence"
return "device_tracker." + strings.ToLower(person) + "_presence"
}
func (a *PeopleApp) getHassDeviceState(devices []*client.HassEntity) string {
sortedDevices := devices
Expand Down

0 comments on commit 4bb05cc

Please sign in to comment.