Device tracker breaking automation

I think I fixed it