Change negative battery levels to None/null
What's Changed
- Change negative battery levels to None/null
Sometimes the battery level of some phones gets temporarily reported as -1 but then goes right back to what it was. So far, this has only been seen with iPhones. This is probably Life360's way of saying it temporarily doesn't know what the level is. So, rather than showing the battery level as a negative percentage, show it as None (which is shown as null in YAML.) This is the standard "HA way" of indicating an unknown value.
Full Changelog: 0.6.0...0.7.0