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
pull/21842/head
Andrew Hall 2019-03-19 07:46:04 +00:00 committed by Jason Hu
parent f195ecca4b
commit 12df14b87b
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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',