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 descriptionpull/21842/head
parent
f195ecca4b
commit
12df14b87b
|
@ -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'
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue