From 12df14b87bc0865498a86f96e6ed2deec7de1ca7 Mon Sep 17 00:00:00 2001 From: Andrew Hall Date: Tue, 19 Mar 2019 07:46:04 +0000 Subject: [PATCH] Change ATTR_BATTERY_STATE_UNPLUGGED for ios component (#22152) * AH - Updated Text Description of ATTR_BATTERY_STATE_UNPLUGGED * AH - updated device_tracker ios test to use new battery state description --- homeassistant/components/ios/__init__.py | 2 +- tests/components/device_tracker/test_init.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/ios/__init__.py b/homeassistant/components/ios/__init__.py index 737216af5c9..cc8bd62293a 100644 --- a/homeassistant/components/ios/__init__.py +++ b/homeassistant/components/ios/__init__.py @@ -76,7 +76,7 @@ PERMISSIONS = [ATTR_LOCATION_PERMISSION, ATTR_NOTIFICATIONS_PERMISSION] ATTR_BATTERY_STATE = 'state' ATTR_BATTERY_LEVEL = 'level' -ATTR_BATTERY_STATE_UNPLUGGED = 'Unplugged' +ATTR_BATTERY_STATE_UNPLUGGED = 'Not Charging' ATTR_BATTERY_STATE_CHARGING = 'Charging' ATTR_BATTERY_STATE_FULL = 'Full' ATTR_BATTERY_STATE_UNKNOWN = 'Unknown' diff --git a/tests/components/device_tracker/test_init.py b/tests/components/device_tracker/test_init.py index 31f2d5865b3..63f1c60327a 100644 --- a/tests/components/device_tracker/test_init.py +++ b/tests/components/device_tracker/test_init.py @@ -626,7 +626,7 @@ def test_see_schema_allowing_ios_calls(): device_tracker.SERVICE_SEE_PAYLOAD_SCHEMA({ 'dev_id': 'Test', "battery": 35, - "battery_status": 'Unplugged', + "battery_status": 'Not Charging', "gps": [10.0, 10.0], "gps_accuracy": 300, "hostname": 'beer',