diff --git a/tests/components/nexia/test_diagnostics.py b/tests/components/nexia/test_diagnostics.py index 4aa91c2f301..a7da14e52ad 100644 --- a/tests/components/nexia/test_diagnostics.py +++ b/tests/components/nexia/test_diagnostics.py @@ -15,28 +15,39 @@ async def test_diagnostics(hass, hass_client): { "_links": { "edit": { - "href": "https://www.mynexia.com/mobile/automation_edit_buffers?automation_id=3467876", + "href": ( + "https://www.mynexia.com/mobile" + "/automation_edit_buffers?automation_id=3467876" + ), "method": "POST", }, "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=472ae0d2-5d7c-4a1c-9e47-4d9035fdace5" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=472ae0d2-5d7c-4a1c-9e47-4d9035fdace5" + ) }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?automation_id=3467876" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "?automation_id=3467876" + ) }, "self": { "href": "https://www.mynexia.com/mobile/automations/3467876" }, }, - "description": "When IFTTT activates the automation Upstairs " - "West Wing will permanently hold the heat to " - "62.0 and cool to 83.0 AND Downstairs East " - "Wing will permanently hold the heat to 62.0 " - "and cool to 83.0 AND Downstairs West Wing " - "will permanently hold the heat to 62.0 and " - "cool to 83.0 AND Activate the mode named " - "'Away 12' AND Master Suite will permanently " - "hold the heat to 62.0 and cool to 83.0", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will permanently hold the heat to " + "62.0 and cool to 83.0 AND Downstairs East " + "Wing will permanently hold the heat to 62.0 " + "and cool to 83.0 AND Downstairs West Wing " + "will permanently hold the heat to 62.0 and " + "cool to 83.0 AND Activate the mode named " + "'Away 12' AND Master Suite will permanently " + "hold the heat to 62.0 and cool to 83.0" + ), "enabled": True, "icon": [ {"modifiers": [], "name": "gears"}, @@ -54,28 +65,39 @@ async def test_diagnostics(hass, hass_client): { "_links": { "edit": { - "href": "https://www.mynexia.com/mobile/automation_edit_buffers?automation_id=3467870", + "href": ( + "https://www.mynexia.com/mobile" + "/automation_edit_buffers?automation_id=3467870" + ), "method": "POST", }, "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=f63ee20c-3146-49a1-87c5-47429a063d15" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=f63ee20c-3146-49a1-87c5-47429a063d15" + ) }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?automation_id=3467870" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?automation_id=3467870" + ) }, "self": { "href": "https://www.mynexia.com/mobile/automations/3467870" }, }, - "description": "When IFTTT activates the automation Upstairs " - "West Wing will permanently hold the heat to " - "60.0 and cool to 85.0 AND Downstairs East " - "Wing will permanently hold the heat to 60.0 " - "and cool to 85.0 AND Downstairs West Wing " - "will permanently hold the heat to 60.0 and " - "cool to 85.0 AND Activate the mode named " - "'Away 24' AND Master Suite will permanently " - "hold the heat to 60.0 and cool to 85.0", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will permanently hold the heat to " + "60.0 and cool to 85.0 AND Downstairs East " + "Wing will permanently hold the heat to 60.0 " + "and cool to 85.0 AND Downstairs West Wing " + "will permanently hold the heat to 60.0 and " + "cool to 85.0 AND Activate the mode named " + "'Away 24' AND Master Suite will permanently " + "hold the heat to 60.0 and cool to 85.0" + ), "enabled": True, "icon": [ {"modifiers": [], "name": "gears"}, @@ -93,35 +115,46 @@ async def test_diagnostics(hass, hass_client): { "_links": { "edit": { - "href": "https://www.mynexia.com/mobile/automation_edit_buffers?automation_id=3452469", + "href": ( + "https://www.mynexia.com/mobile" + "/automation_edit_buffers?automation_id=3452469" + ), "method": "POST", }, "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=e5c59b93-efca-4937-9499-3f4c896ab17c" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=e5c59b93-efca-4937-9499-3f4c896ab17c" + ), }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?automation_id=3452469" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?automation_id=3452469" + ) }, "self": { "href": "https://www.mynexia.com/mobile/automations/3452469" }, }, - "description": "When IFTTT activates the automation Upstairs " - "West Wing will permanently hold the heat to " - "63.0 and cool to 80.0 AND Downstairs East " - "Wing will permanently hold the heat to 63.0 " - "and cool to 79.0 AND Downstairs West Wing " - "will permanently hold the heat to 63.0 and " - "cool to 79.0 AND Upstairs West Wing will " - "permanently hold the heat to 63.0 and cool " - "to 81.0 AND Upstairs West Wing will change " - "Fan Mode to Auto AND Downstairs East Wing " - "will change Fan Mode to Auto AND Downstairs " - "West Wing will change Fan Mode to Auto AND " - "Activate the mode named 'Away Short' AND " - "Master Suite will permanently hold the heat " - "to 63.0 and cool to 79.0 AND Master Suite " - "will change Fan Mode to Auto", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will permanently hold the heat to " + "63.0 and cool to 80.0 AND Downstairs East " + "Wing will permanently hold the heat to 63.0 " + "and cool to 79.0 AND Downstairs West Wing " + "will permanently hold the heat to 63.0 and " + "cool to 79.0 AND Upstairs West Wing will " + "permanently hold the heat to 63.0 and cool " + "to 81.0 AND Upstairs West Wing will change " + "Fan Mode to Auto AND Downstairs East Wing " + "will change Fan Mode to Auto AND Downstairs " + "West Wing will change Fan Mode to Auto AND " + "Activate the mode named 'Away Short' AND " + "Master Suite will permanently hold the heat " + "to 63.0 and cool to 79.0 AND Master Suite " + "will change Fan Mode to Auto" + ), "enabled": False, "icon": [ {"modifiers": [], "name": "gears"}, @@ -144,25 +177,36 @@ async def test_diagnostics(hass, hass_client): { "_links": { "edit": { - "href": "https://www.mynexia.com/mobile/automation_edit_buffers?automation_id=3452472", + "href": ( + "https://www.mynexia.com/mobile" + "/automation_edit_buffers?automation_id=3452472" + ), "method": "POST", }, "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=861b9fec-d259-4492-a798-5712251666c4" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=861b9fec-d259-4492-a798-5712251666c4" + ), }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?automation_id=3452472" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?automation_id=3452472" + ), }, "self": { "href": "https://www.mynexia.com/mobile/automations/3452472" }, }, - "description": "When IFTTT activates the automation Upstairs " - "West Wing will Run Schedule AND Downstairs " - "East Wing will Run Schedule AND Downstairs " - "West Wing will Run Schedule AND Activate the " - "mode named 'Home' AND Master Suite will Run " - "Schedule", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will Run Schedule AND Downstairs " + "East Wing will Run Schedule AND Downstairs " + "West Wing will Run Schedule AND Activate the " + "mode named 'Home' AND Master Suite will Run " + "Schedule" + ), "enabled": True, "icon": [ {"modifiers": [], "name": "gears"}, @@ -180,32 +224,43 @@ async def test_diagnostics(hass, hass_client): { "_links": { "edit": { - "href": "https://www.mynexia.com/mobile/automation_edit_buffers?automation_id=3454776", + "href": ( + "https://www.mynexia.com/mobile" + "/automation_edit_buffers?automation_id=3454776" + ), "method": "POST", }, "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=96c71d37-66aa-4cbb-84ff-a90412fd366a" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=96c71d37-66aa-4cbb-84ff-a90412fd366a" + ) }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?automation_id=3454776" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?automation_id=3454776" + ) }, "self": { "href": "https://www.mynexia.com/mobile/automations/3454776" }, }, - "description": "When IFTTT activates the automation Upstairs " - "West Wing will permanently hold the heat to " - "60.0 and cool to 85.0 AND Downstairs East " - "Wing will permanently hold the heat to 60.0 " - "and cool to 85.0 AND Downstairs West Wing " - "will permanently hold the heat to 60.0 and " - "cool to 85.0 AND Upstairs West Wing will " - "change Fan Mode to Auto AND Downstairs East " - "Wing will change Fan Mode to Auto AND " - "Downstairs West Wing will change Fan Mode to " - "Auto AND Master Suite will permanently hold " - "the heat to 60.0 and cool to 85.0 AND Master " - "Suite will change Fan Mode to Auto", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will permanently hold the heat to " + "60.0 and cool to 85.0 AND Downstairs East " + "Wing will permanently hold the heat to 60.0 " + "and cool to 85.0 AND Downstairs West Wing " + "will permanently hold the heat to 60.0 and " + "cool to 85.0 AND Upstairs West Wing will " + "change Fan Mode to Auto AND Downstairs East " + "Wing will change Fan Mode to Auto AND " + "Downstairs West Wing will change Fan Mode to " + "Auto AND Master Suite will permanently hold " + "the heat to 60.0 and cool to 85.0 AND Master " + "Suite will change Fan Mode to Auto" + ), "enabled": True, "icon": [ {"modifiers": [], "name": "gears"}, @@ -226,24 +281,35 @@ async def test_diagnostics(hass, hass_client): { "_links": { "edit": { - "href": "https://www.mynexia.com/mobile/automation_edit_buffers?automation_id=3454774", + "href": ( + "https://www.mynexia.com/mobile" + "/automation_edit_buffers?automation_id=3454774" + ), "method": "POST", }, "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=880c5287-d92c-4368-8494-e10975e92733" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=880c5287-d92c-4368-8494-e10975e92733" + ), }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?automation_id=3454774" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?automation_id=3454774" + ) }, "self": { "href": "https://www.mynexia.com/mobile/automations/3454774" }, }, - "description": "When IFTTT activates the automation Upstairs " - "West Wing will Run Schedule AND Downstairs " - "East Wing will Run Schedule AND Downstairs " - "West Wing will Run Schedule AND Master Suite " - "will Run Schedule", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will Run Schedule AND Downstairs " + "East Wing will Run Schedule AND Downstairs " + "West Wing will Run Schedule AND Master Suite " + "will Run Schedule" + ), "enabled": False, "icon": [ {"modifiers": [], "name": "gears"}, @@ -260,27 +326,38 @@ async def test_diagnostics(hass, hass_client): { "_links": { "edit": { - "href": "https://www.mynexia.com/mobile/automation_edit_buffers?automation_id=3486078", + "href": ( + "https://www.mynexia.com/mobile" + "/automation_edit_buffers?automation_id=3486078" + ), "method": "POST", }, "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=d33c013b-2357-47a9-8c66-d2c3693173b0" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=d33c013b-2357-47a9-8c66-d2c3693173b0" + ) }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?automation_id=3486078" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?automation_id=3486078" + ) }, "self": { "href": "https://www.mynexia.com/mobile/automations/3486078" }, }, - "description": "When IFTTT activates the automation Upstairs " - "West Wing will permanently hold the heat to " - "55.0 and cool to 90.0 AND Downstairs East " - "Wing will permanently hold the heat to 55.0 " - "and cool to 90.0 AND Downstairs West Wing " - "will permanently hold the heat to 55.0 and " - "cool to 90.0 AND Activate the mode named " - "'Power Outage'", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will permanently hold the heat to " + "55.0 and cool to 90.0 AND Downstairs East " + "Wing will permanently hold the heat to 55.0 " + "and cool to 90.0 AND Downstairs West Wing " + "will permanently hold the heat to 55.0 and " + "cool to 90.0 AND Activate the mode named " + "'Power Outage'" + ), "enabled": True, "icon": [ {"modifiers": [], "name": "gears"}, @@ -297,24 +374,35 @@ async def test_diagnostics(hass, hass_client): { "_links": { "edit": { - "href": "https://www.mynexia.com/mobile/automation_edit_buffers?automation_id=3486091", + "href": ( + "https://www.mynexia.com/mobile" + "/automation_edit_buffers?automation_id=3486091" + ), "method": "POST", }, "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=b9141df8-2e5e-4524-b8ef-efcbf48d775a" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=b9141df8-2e5e-4524-b8ef-efcbf48d775a" + ) }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?automation_id=3486091" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?automation_id=3486091" + ) }, "self": { "href": "https://www.mynexia.com/mobile/automations/3486091" }, }, - "description": "When IFTTT activates the automation Upstairs " - "West Wing will Run Schedule AND Downstairs " - "East Wing will Run Schedule AND Downstairs " - "West Wing will Run Schedule AND Activate the " - "mode named 'Home'", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will Run Schedule AND Downstairs " + "East Wing will Run Schedule AND Downstairs " + "West Wing will Run Schedule AND Activate the " + "mode named 'Home'" + ), "enabled": True, "icon": [ {"modifiers": [], "name": "gears"}, @@ -333,13 +421,22 @@ async def test_diagnostics(hass, hass_client): { "_links": { "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=cd9a70e8-fd0d-4b58-b071-05a202fd8953" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=cd9a70e8-fd0d-4b58-b071-05a202fd8953" + ) }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?device_id=2059661" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?device_id=2059661" + ) }, "pending_request": { - "polling_path": "https://www.mynexia.com/backstage/announcements/be6d8ede5cac02fe8be18c334b04d539c9200fa9230eef63" + "polling_path": ( + "https://www.mynexia.com/backstage/announcements" + "/be6d8ede5cac02fe8be18c334b04d539c9200fa9230eef63" + ) }, "self": { "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059661" @@ -403,7 +500,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83261002" + ) } }, "cooling_setpoint": 79, @@ -412,10 +511,14 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83261002/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83261002/setpoints" + ) }, }, "name": "thermostat", @@ -430,7 +533,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_increment": 1.0, "status": "", "status_icon": None, - "system_status": "System " "Idle", + "system_status": "System Idle", "temperature": 71, }, { @@ -441,7 +544,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/zone_mode" + ), "method": "POST", } }, @@ -452,7 +558,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -465,7 +571,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/run_mode" + ), "method": "POST", } }, @@ -476,25 +585,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -504,24 +611,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261002/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261002", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83261002" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261002", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83261002" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261002", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83261002" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261002&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile" + "/schedules" + "?device_identifier=XxlZone-83261002" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -542,7 +675,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002" + "/preset_selected" + ) } }, "current_value": 0, @@ -560,7 +697,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/zone_mode" + ) } }, "current_value": "AUTO", @@ -578,21 +718,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -603,7 +746,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -624,7 +771,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005" + ) } }, "cooling_setpoint": 79, @@ -633,10 +783,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/setpoints" + ) }, }, "name": "thermostat", @@ -651,7 +807,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_increment": 1.0, "status": "", "status_icon": None, - "system_status": "System " "Idle", + "system_status": "System Idle", "temperature": 77, }, { @@ -662,7 +818,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/zone_mode" + ), "method": "POST", } }, @@ -673,7 +832,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -686,7 +845,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/run_mode" + ), "method": "POST", } }, @@ -697,25 +859,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -725,24 +885,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261005", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83261005" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261005", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83261005" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261005", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83261005" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261005&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261005" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -763,7 +949,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005" + "/preset_selected" + ) } }, "current_value": 0, @@ -781,7 +971,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/zone_mode" + ) } }, "current_value": "AUTO", @@ -799,21 +992,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -824,7 +1020,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -845,7 +1045,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008" + ) } }, "cooling_setpoint": 79, @@ -854,10 +1057,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/setpoints" + ) }, }, "name": "thermostat", @@ -872,7 +1081,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_increment": 1.0, "status": "", "status_icon": None, - "system_status": "System " "Idle", + "system_status": "System Idle", "temperature": 72, }, { @@ -883,7 +1092,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/zone_mode" + ), "method": "POST", } }, @@ -894,7 +1106,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -907,7 +1119,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/run_mode" + ), "method": "POST", } }, @@ -918,25 +1133,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -946,24 +1159,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261008", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83261008" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261008", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83261008" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261008", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83261008" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261008&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261008" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -984,7 +1223,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008" + "/preset_selected" + ) } }, "current_value": 0, @@ -1002,7 +1245,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/zone_mode" + ) } }, "current_value": "AUTO", @@ -1020,21 +1266,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -1045,7 +1294,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -1066,7 +1319,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011" + ) } }, "cooling_setpoint": 79, @@ -1075,10 +1331,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011/setpoints" + ) }, }, "name": "thermostat", @@ -1093,7 +1355,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_increment": 1.0, "status": "", "status_icon": None, - "system_status": "System " "Idle", + "system_status": "System Idle", "temperature": 78, }, { @@ -1104,7 +1366,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011/zone_mode" + ), "method": "POST", } }, @@ -1115,7 +1380,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -1128,7 +1393,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011/run_mode" + ), "method": "POST", } }, @@ -1139,25 +1407,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -1167,24 +1433,52 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261011", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83261011" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261011", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83261011" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261011", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83261011" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261011&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile" + "/schedules" + "?device_identifier" + "=XxlZone-83261011" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -1205,7 +1499,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011" + "/preset_selected" + ) } }, "current_value": 0, @@ -1223,7 +1521,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011/zone_mode" + ) } }, "current_value": "AUTO", @@ -1241,21 +1542,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -1266,7 +1570,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261011" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -1290,7 +1598,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_fan_mode": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059661/fan_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059661/fan_mode" + ), "method": "POST", } }, @@ -1315,11 +1626,17 @@ async def test_diagnostics(hass, hass_client): { "actions": { "get_monthly_runtime_history": { - "href": "https://www.mynexia.com/mobile/runtime_history/2059661?report_type=monthly", + "href": ( + "https://www.mynexia.com/mobile" + "/runtime_history/2059661?report_type=monthly" + ), "method": "GET", }, "get_runtime_history": { - "href": "https://www.mynexia.com/mobile/runtime_history/2059661?report_type=daily", + "href": ( + "https://www.mynexia.com/mobile" + "/runtime_history/2059661?report_type=daily" + ), "method": "GET", }, }, @@ -1344,7 +1661,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059661/fan_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059661/fan_mode" + ) } }, "current_value": "auto", @@ -1361,7 +1681,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059661/fan_speed" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059661/fan_speed" + ) } }, "current_value": 0.35, @@ -1419,7 +1742,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059661/fan_circulation_time" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059661" + "/fan_circulation_time" + ) } }, "current_value": 30, @@ -1454,7 +1781,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059661/air_cleaner_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059661/air_cleaner_mode" + ) } }, "current_value": "auto", @@ -1471,7 +1801,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059661/dehumidify" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059661/dehumidify" + ) } }, "current_value": 0.5, @@ -1492,7 +1825,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059661/scale" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059661/scale" + ) } }, "current_value": "f", @@ -1514,7 +1850,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83261002" + ) } }, "cooling_setpoint": 79, @@ -1523,10 +1861,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/setpoints" + ) }, }, "name": "thermostat", @@ -1552,7 +1896,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/zone_mode" + ), "method": "POST", } }, @@ -1576,7 +1923,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/run_mode" + ), "method": "POST", } }, @@ -1593,9 +1943,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -1610,24 +1958,44 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261002", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_active_schedule" + "?device_identifier=XxlZone-83261002" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261002", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_default_schedule" + "?device_identifier=XxlZone-83261002" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261002", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier=XxlZone-83261002" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261002&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261002" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -1645,7 +2013,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/preset_selected" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261002/preset_selected" + ) } }, "current_value": 0, @@ -1663,7 +2034,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/zone_mode" + ) } }, "current_value": "AUTO", @@ -1681,7 +2055,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/run_mode" + ) } }, "current_value": "permanent_hold", @@ -1700,7 +2077,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261002/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261002/scheduling_enabled" + ) } }, "current_value": True, @@ -1721,7 +2101,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83261005" + ) } }, "cooling_setpoint": 79, @@ -1730,10 +2112,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/setpoints" + ) }, }, "name": "thermostat", @@ -1759,7 +2147,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/zone_mode" + ), "method": "POST", } }, @@ -1783,7 +2174,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/run_mode" + ), "method": "POST", } }, @@ -1800,9 +2194,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -1817,24 +2209,46 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261005/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261005", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier=XxlZone-83261005" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261005", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier=XxlZone-83261005" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261005", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier=XxlZone-83261005" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261005&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261005" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -1852,7 +2266,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/preset_selected" + ) } }, "current_value": 0, @@ -1870,7 +2287,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/zone_mode" + ) } }, "current_value": "AUTO", @@ -1888,7 +2308,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/run_mode" + ) } }, "current_value": "permanent_hold", @@ -1907,7 +2330,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261005/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261005/scheduling_enabled" + ) } }, "current_value": True, @@ -1928,7 +2354,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83261008" + ) } }, "cooling_setpoint": 79, @@ -1937,10 +2365,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/setpoints" + ) }, }, "name": "thermostat", @@ -1966,7 +2400,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/zone_mode" + ), "method": "POST", } }, @@ -1990,7 +2427,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/run_mode" + ), "method": "POST", } }, @@ -2007,9 +2447,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -2024,24 +2462,43 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261008/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261008", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_active_schedule" + "?device_identifier=XxlZone-83261008" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261008", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_default_schedule" + "?device_identifier=XxlZone-83261008" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261008", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/set_active_schedule" + "?device_identifier=XxlZone-83261008" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261008&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261008" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -2059,7 +2516,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/preset_selected" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261008/preset_selected" + ) } }, "current_value": 0, @@ -2077,7 +2537,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/zone_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261008/zone_mode" + ) } }, "current_value": "AUTO", @@ -2095,7 +2558,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/run_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261008/run_mode" + ) } }, "current_value": "permanent_hold", @@ -2114,7 +2580,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261008/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261008/scheduling_enabled" + ) } }, "current_value": True, @@ -2135,7 +2604,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83261011" + ) } }, "cooling_setpoint": 79, @@ -2144,10 +2615,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261011/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261011/setpoints" + ) }, }, "name": "thermostat", @@ -2173,7 +2650,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/zone_mode", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261011/zone_mode" + ), "method": "POST", } }, @@ -2197,7 +2677,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/run_mode", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261011/run_mode" + ), "method": "POST", } }, @@ -2214,9 +2697,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -2231,24 +2712,43 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261011/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261011", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_active_schedule" + "?device_identifier=XxlZone-83261011" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261011", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_default_schedule" + "?device_identifier=XxlZone-83261011" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261011", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/set_active_schedule" + "?device_identifier=XxlZone-83261011" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261011&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261011" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -2266,7 +2766,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/preset_selected" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261011/preset_selected" + ) } }, "current_value": 0, @@ -2284,7 +2787,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/zone_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261011/zone_mode" + ) } }, "current_value": "AUTO", @@ -2302,7 +2808,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/run_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261011/run_mode" + ) } }, "current_value": "permanent_hold", @@ -2321,7 +2830,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261011/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261011/scheduling_enabled" + ) } }, "current_value": True, @@ -2344,13 +2856,22 @@ async def test_diagnostics(hass, hass_client): { "_links": { "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=5aae72a6-1bd0-4d84-9bfd-673e7bc4907c" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=5aae72a6-1bd0-4d84-9bfd-673e7bc4907c" + ) }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?device_id=2059676" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?device_id=2059676" + ) }, "pending_request": { - "polling_path": "https://www.mynexia.com/backstage/announcements/3412f1d96eb0c5edb5466c3c0598af60c06f8443f21e9bcb" + "polling_path": ( + "https://www.mynexia.com/backstage/announcements" + "/3412f1d96eb0c5edb5466c3c0598af60c06f8443f21e9bcb" + ) }, "self": { "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059676" @@ -2418,7 +2939,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015" + ) } }, "cooling_setpoint": 79, @@ -2427,10 +2951,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/setpoints" + ) }, }, "name": "thermostat", @@ -2445,7 +2975,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_increment": 1.0, "status": "", "status_icon": None, - "system_status": "System " "Idle", + "system_status": "System Idle", "temperature": 75, }, { @@ -2456,7 +2986,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/zone_mode" + ), "method": "POST", } }, @@ -2467,7 +3000,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -2480,7 +3013,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/run_mode" + ), "method": "POST", } }, @@ -2491,25 +3027,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -2519,24 +3053,49 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261015", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83261015" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261015", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83261015" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261015", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83261015" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261015&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261015" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -2557,7 +3116,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015" + "/preset_selected" + ) } }, "current_value": 0, @@ -2575,7 +3138,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/zone_mode" + ) } }, "current_value": "AUTO", @@ -2593,21 +3159,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -2618,7 +3187,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -2639,7 +3212,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018" + ) } }, "cooling_setpoint": 79, @@ -2648,10 +3224,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/setpoints" + ) }, }, "name": "thermostat", @@ -2666,7 +3248,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_increment": 1.0, "status": "", "status_icon": None, - "system_status": "System " "Idle", + "system_status": "System Idle", "temperature": 75, }, { @@ -2677,7 +3259,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/zone_mode" + ), "method": "POST", } }, @@ -2688,7 +3273,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -2701,7 +3286,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/run_mode" + ), "method": "POST", } }, @@ -2712,25 +3300,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -2740,24 +3326,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261018", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83261018" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261018", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83261018" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261018", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83261018" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261018&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261018" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -2778,7 +3390,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018" + "/preset_selected" + ) } }, "current_value": 0, @@ -2796,7 +3412,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/zone_mode" + ) } }, "current_value": "AUTO", @@ -2814,21 +3433,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -2839,7 +3461,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -2863,7 +3489,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_fan_mode": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059676/fan_mode", + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2059676/fan_mode" + ), "method": "POST", } }, @@ -2888,11 +3517,17 @@ async def test_diagnostics(hass, hass_client): { "actions": { "get_monthly_runtime_history": { - "href": "https://www.mynexia.com/mobile/runtime_history/2059676?report_type=monthly", + "href": ( + "https://www.mynexia.com/mobile/runtime_history" + "/2059676?report_type=monthly" + ), "method": "GET", }, "get_runtime_history": { - "href": "https://www.mynexia.com/mobile/runtime_history/2059676?report_type=daily", + "href": ( + "https://www.mynexia.com/mobile/runtime_history" + "/2059676?report_type=daily" + ), "method": "GET", }, }, @@ -2915,7 +3550,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059676/fan_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2059676/fan_mode" + ) } }, "current_value": "auto", @@ -2932,7 +3570,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059676/fan_speed" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2059676/fan_speed" + ) } }, "current_value": 0.35, @@ -2990,7 +3631,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059676/fan_circulation_time" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2059676/fan_circulation_time" + ) } }, "current_value": 30, @@ -3025,7 +3669,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059676/air_cleaner_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2059676/air_cleaner_mode" + ) } }, "current_value": "auto", @@ -3042,7 +3689,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059676/dehumidify" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2059676/dehumidify" + ) } }, "current_value": 0.45, @@ -3063,7 +3713,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059676/scale" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2059676/scale" + ) } }, "current_value": "f", @@ -3085,7 +3738,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83261015" + ) } }, "cooling_setpoint": 79, @@ -3094,10 +3749,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261015/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261015/setpoints" + ) }, }, "name": "thermostat", @@ -3123,7 +3784,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/zone_mode", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261015/zone_mode" + ), "method": "POST", } }, @@ -3147,7 +3811,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/run_mode", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261015/run_mode" + ), "method": "POST", } }, @@ -3164,9 +3831,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -3181,24 +3846,43 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261015/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261015", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_active_schedule" + "?device_identifier=XxlZone-83261015" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261015", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_default_schedule" + "?device_identifier=XxlZone-83261015" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261015", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/set_active_schedule" + "?device_identifier=XxlZone-83261015" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261015&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261015" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -3216,7 +3900,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/preset_selected" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261015/preset_selected" + ) } }, "current_value": 0, @@ -3234,7 +3921,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/zone_mode" + ) } }, "current_value": "AUTO", @@ -3252,7 +3942,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/run_mode" + ) } }, "current_value": "permanent_hold", @@ -3271,7 +3964,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261015/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261015/scheduling_enabled" + ) } }, "current_value": True, @@ -3292,7 +3988,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83261018" + ) } }, "cooling_setpoint": 79, @@ -3301,10 +3999,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/setpoints" + ) }, }, "name": "thermostat", @@ -3330,7 +4034,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/zone_mode" + ), "method": "POST", } }, @@ -3354,7 +4061,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/run_mode" + ), "method": "POST", } }, @@ -3371,9 +4081,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -3388,24 +4096,43 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83261018/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83261018", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_active_schedule" + "?device_identifier=XxlZone-83261018" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83261018", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_default_schedule" + "?device_identifier=XxlZone-83261018" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83261018", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/set_active_schedule" + "?device_identifier=XxlZone-83261018" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83261018&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83261018" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -3423,7 +4150,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/preset_selected" + ) } }, "current_value": 0, @@ -3441,7 +4171,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/zone_mode" + ) } }, "current_value": "AUTO", @@ -3459,7 +4192,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/run_mode" + ) } }, "current_value": "permanent_hold", @@ -3478,7 +4214,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83261018/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83261018/scheduling_enabled" + ) } }, "current_value": True, @@ -3501,13 +4240,22 @@ async def test_diagnostics(hass, hass_client): { "_links": { "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=e3fc90c7-2885-4f57-ae76-99e9ec81eef0" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=e3fc90c7-2885-4f57-ae76-99e9ec81eef0" + ) }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?device_id=2293892" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?device_id=2293892" + ) }, "pending_request": { - "polling_path": "https://www.mynexia.com/backstage/announcements/967361e8aed874aa5230930fd0e0bbd8b653261e982a6e0e" + "polling_path": ( + "https://www.mynexia.com/backstage/announcements" + "/967361e8aed874aa5230930fd0e0bbd8b653261e982a6e0e" + ) }, "self": { "href": "https://www.mynexia.com/mobile/xxl_thermostats/2293892" @@ -3575,7 +4323,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133" + ) } }, "cooling_setpoint": 79, @@ -3584,10 +4335,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/setpoints" + ) }, }, "name": "thermostat", @@ -3600,7 +4357,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_heat_max": 90, "setpoint_heat_min": 55, "setpoint_increment": 1.0, - "status": "Relieving " "Air", + "status": "Relieving Air", "status_icon": { "modifiers": [], "name": "cooling", @@ -3616,7 +4373,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/zone_mode" + ), "method": "POST", } }, @@ -3627,7 +4387,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -3640,7 +4400,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/run_mode" + ), "method": "POST", } }, @@ -3651,25 +4414,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -3679,24 +4440,45 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394133", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier=XxlZone-83394133" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394133", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier=XxlZone-83394133" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394133", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/set_active_schedule" + "?device_identifier=XxlZone-83394133" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394133&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394133" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -3717,7 +4499,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/preset_selected" + ) } }, "current_value": 0, @@ -3735,7 +4520,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/zone_mode" + ) } }, "current_value": "AUTO", @@ -3753,21 +4541,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -3778,7 +4569,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/scheduling_enabled" + ) } }, "current_value": True, @@ -3799,7 +4593,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130" + ) } }, "cooling_setpoint": 71, @@ -3808,10 +4605,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/setpoints" + ) }, }, "name": "thermostat", @@ -3840,7 +4643,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/zone_mode" + ), "method": "POST", } }, @@ -3851,7 +4657,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -3864,7 +4670,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/run_mode" + ), "method": "POST", } }, @@ -3875,25 +4684,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -3903,24 +4710,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394130", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83394130" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394130", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83394130" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394130", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83394130" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394130&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394130" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -3941,7 +4774,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130" + "/preset_selected" + ) } }, "current_value": 0, @@ -3959,7 +4796,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/zone_mode" + ) } }, "current_value": "AUTO", @@ -3977,21 +4817,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -4002,7 +4845,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -4023,7 +4870,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136" + ) } }, "cooling_setpoint": 79, @@ -4032,10 +4882,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/setpoints" + ) }, }, "name": "thermostat", @@ -4048,7 +4904,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_heat_max": 90, "setpoint_heat_min": 55, "setpoint_increment": 1.0, - "status": "Relieving " "Air", + "status": "Relieving Air", "status_icon": { "modifiers": [], "name": "cooling", @@ -4064,7 +4920,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/zone_mode" + ), "method": "POST", } }, @@ -4075,7 +4934,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -4088,7 +4947,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/run_mode" + ), "method": "POST", } }, @@ -4099,25 +4961,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -4127,24 +4987,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394136", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83394136" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394136", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83394136" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394136", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83394136" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394136&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394136" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -4165,7 +5051,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/preset_selected" + ) } }, "current_value": 0, @@ -4183,7 +5072,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/zone_mode" + ) } }, "current_value": "AUTO", @@ -4201,21 +5093,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -4226,7 +5121,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/scheduling_enabled" + ) } }, "current_value": True, @@ -4247,7 +5145,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127" + ) } }, "cooling_setpoint": 79, @@ -4256,10 +5157,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/setpoints" + ) }, }, "name": "thermostat", @@ -4272,7 +5179,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_heat_max": 90, "setpoint_heat_min": 55, "setpoint_increment": 1.0, - "status": "Damper " "Closed", + "status": "Damper Closed", "status_icon": { "modifiers": [], "name": "cooling", @@ -4288,7 +5195,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/zone_mode" + ), "method": "POST", } }, @@ -4299,7 +5209,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -4312,7 +5222,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/run_mode" + ), "method": "POST", } }, @@ -4323,25 +5236,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -4351,24 +5262,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394127", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83394127" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394127", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83394127" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394127", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83394127" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394127&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394127" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -4389,7 +5326,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127" + "/preset_selected" + ) } }, "current_value": 0, @@ -4407,7 +5348,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/zone_mode" + ) } }, "current_value": "AUTO", @@ -4425,21 +5369,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -4450,7 +5397,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -4471,7 +5422,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139" + ) } }, "cooling_setpoint": 79, @@ -4480,10 +5434,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/setpoints" + ) }, }, "name": "thermostat", @@ -4496,7 +5456,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_heat_max": 90, "setpoint_heat_min": 55, "setpoint_increment": 1.0, - "status": "Damper " "Closed", + "status": "Damper Closed", "status_icon": { "modifiers": [], "name": "cooling", @@ -4512,7 +5472,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/zone_mode" + ), "method": "POST", } }, @@ -4523,7 +5486,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -4536,7 +5499,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/run_mode" + ), "method": "POST", } }, @@ -4547,25 +5513,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -4575,24 +5539,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394139", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83394139" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394139", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83394139" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394139", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83394139" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394139&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394139" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -4613,7 +5603,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139" + "/preset_selected" + ) } }, "current_value": 0, @@ -4631,7 +5625,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/zone_mode" + ) } }, "current_value": "AUTO", @@ -4649,21 +5646,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -4674,7 +5674,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -4698,7 +5702,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_fan_mode": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2293892/fan_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2293892/fan_mode" + ), "method": "POST", } }, @@ -4723,11 +5730,17 @@ async def test_diagnostics(hass, hass_client): { "actions": { "get_monthly_runtime_history": { - "href": "https://www.mynexia.com/mobile/runtime_history/2293892?report_type=monthly", + "href": ( + "https://www.mynexia.com/mobile/runtime_history" + "/2293892?report_type=monthly" + ), "method": "GET", }, "get_runtime_history": { - "href": "https://www.mynexia.com/mobile/runtime_history/2293892?report_type=daily", + "href": ( + "https://www.mynexia.com/mobile/runtime_history" + "/2293892?report_type=daily" + ), "method": "GET", }, }, @@ -4753,7 +5766,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2293892/fan_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2293892/fan_mode" + ) } }, "current_value": "auto", @@ -4770,7 +5786,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2293892/fan_speed" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2293892/fan_speed" + ) } }, "current_value": 0.35, @@ -4828,7 +5847,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2293892/fan_circulation_time" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2293892/fan_circulation_time" + ) } }, "current_value": 30, @@ -4863,7 +5885,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2293892/air_cleaner_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_thermostats" + "/2293892/air_cleaner_mode" + ) } }, "current_value": "auto", @@ -4880,7 +5905,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2293892/dehumidify" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2293892/dehumidify" + ) } }, "current_value": 0.45, @@ -4901,7 +5929,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2293892/scale" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2293892/scale" + ) } }, "current_value": "f", @@ -4923,7 +5954,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83394133" + ) } }, "cooling_setpoint": 79, @@ -4932,10 +5965,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/setpoints" + ) }, }, "name": "thermostat", @@ -4961,7 +6000,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/zone_mode" + ), "method": "POST", } }, @@ -4985,7 +6027,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/run_mode" + ), "method": "POST", } }, @@ -5002,9 +6047,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -5019,24 +6062,49 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83394133/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394133", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83394133" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394133", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83394133" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394133", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83394133" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394133&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394133" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -5054,7 +6122,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/preset_selected" + ) } }, "current_value": 0, @@ -5072,7 +6143,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/zone_mode" + ) } }, "current_value": "AUTO", @@ -5090,7 +6164,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/run_mode" + ) } }, "current_value": "permanent_hold", @@ -5109,7 +6186,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394133/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394133/scheduling_enabled" + ) } }, "current_value": True, @@ -5130,7 +6210,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83394130" + ) } }, "cooling_setpoint": 71, @@ -5139,10 +6221,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/setpoints" + ) }, }, "name": "thermostat", @@ -5168,7 +6256,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/zone_mode" + ), "method": "POST", } }, @@ -5192,7 +6283,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/run_mode" + ), "method": "POST", } }, @@ -5209,9 +6303,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -5226,24 +6318,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394130", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83394130" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394130", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83394130" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394130", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83394130" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394130&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394130" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -5261,7 +6379,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/preset_selected" + ) } }, "current_value": 0, @@ -5279,7 +6400,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/zone_mode" + ) } }, "current_value": "AUTO", @@ -5297,7 +6421,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130/run_mode" + ) } }, "current_value": "permanent_hold", @@ -5316,7 +6443,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394130/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394130" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -5337,7 +6468,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83394136" + ) } }, "cooling_setpoint": 79, @@ -5346,10 +6479,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/setpoints" + ) }, }, "name": "thermostat", @@ -5375,7 +6514,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/zone_mode" + ), "method": "POST", } }, @@ -5399,7 +6541,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/run_mode" + ), "method": "POST", } }, @@ -5416,9 +6561,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -5433,24 +6576,49 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394136", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83394136" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394136", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83394136" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394136", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83394136" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394136&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394136" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -5468,7 +6636,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/preset_selected" + ) } }, "current_value": 0, @@ -5486,7 +6657,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/zone_mode" + ) } }, "current_value": "AUTO", @@ -5504,7 +6678,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/run_mode" + ) } }, "current_value": "permanent_hold", @@ -5523,7 +6700,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394136/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394136/scheduling_enabled" + ) } }, "current_value": True, @@ -5544,7 +6724,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83394127" + ) } }, "cooling_setpoint": 79, @@ -5553,10 +6735,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/setpoints" + ) }, }, "name": "thermostat", @@ -5582,7 +6770,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/zone_mode" + ), "method": "POST", } }, @@ -5606,7 +6797,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/run_mode" + ), "method": "POST", } }, @@ -5623,9 +6817,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -5640,24 +6832,43 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83394127/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394127", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_active_schedule" + "?device_identifier=XxlZone-83394127" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394127", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_default_schedule" + "?device_identifier=XxlZone-83394127" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394127", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/set_active_schedule" + "?device_identifier=XxlZone-83394127" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394127&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394127" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -5675,7 +6886,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/preset_selected" + ) } }, "current_value": 0, @@ -5693,7 +6907,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/zone_mode" + ) } }, "current_value": "AUTO", @@ -5711,7 +6928,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/run_mode" + ) } }, "current_value": "permanent_hold", @@ -5730,7 +6950,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394127/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394127/scheduling_enabled" + ) } }, "current_value": True, @@ -5751,7 +6974,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83394139" + ) } }, "cooling_setpoint": 79, @@ -5760,10 +6985,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/setpoints" + ) }, }, "name": "thermostat", @@ -5789,7 +7020,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/zone_mode" + ), "method": "POST", } }, @@ -5813,7 +7047,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/run_mode" + ), "method": "POST", } }, @@ -5830,9 +7067,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -5847,24 +7082,43 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83394139/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83394139", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_active_schedule" + "?device_identifier=XxlZone-83394139" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83394139", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_default_schedule" + "?device_identifier=XxlZone-83394139" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83394139", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/set_active_schedule" + "?device_identifier=XxlZone-83394139" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83394139&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83394139" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -5882,7 +7136,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/preset_selected" + ) } }, "current_value": 0, @@ -5900,7 +7157,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/zone_mode" + ) } }, "current_value": "AUTO", @@ -5918,7 +7178,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/run_mode" + ) } }, "current_value": "permanent_hold", @@ -5937,7 +7200,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83394139/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83394139/scheduling_enabled" + ) } }, "current_value": True, @@ -5960,13 +7226,22 @@ async def test_diagnostics(hass, hass_client): { "_links": { "filter_events": { - "href": "https://www.mynexia.com/mobile/houses/123456/events/collection?sys_guid=3679e95b-7337-48ae-aff4-e0522e9dd0eb" + "href": ( + "https://www.mynexia.com/mobile/houses/123456/events" + "/collection?sys_guid=3679e95b-7337-48ae-aff4-e0522e9dd0eb" + ) }, "nexia:history": { - "href": "https://www.mynexia.com/mobile/houses/123456/events?device_id=2059652" + "href": ( + "https://www.mynexia.com/mobile/houses/123456" + "/events?device_id=2059652" + ) }, "pending_request": { - "polling_path": "https://www.mynexia.com/backstage/announcements/c6627726f6339d104ee66897028d6a2ea38215675b336650" + "polling_path": ( + "https://www.mynexia.com/backstage/announcements" + "/c6627726f6339d104ee66897028d6a2ea38215675b336650" + ) }, "self": { "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059652" @@ -6034,7 +7309,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991" + ) } }, "cooling_setpoint": 80, @@ -6052,7 +7330,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_increment": 1.0, "status": "", "status_icon": None, - "system_status": "System " "Idle", + "system_status": "System Idle", "temperature": 77, }, { @@ -6063,7 +7341,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/zone_mode" + ), "method": "POST", } }, @@ -6074,7 +7355,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -6087,7 +7368,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/run_mode" + ), "method": "POST", } }, @@ -6098,25 +7382,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -6126,24 +7408,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83260991", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83260991" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83260991", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83260991" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83260991", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83260991" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83260991&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83260991" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -6164,7 +7472,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/preset_selected" + ) } }, "current_value": 0, @@ -6182,7 +7493,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/zone_mode" + ) } }, "current_value": "OFF", @@ -6200,21 +7514,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -6225,7 +7542,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -6246,7 +7567,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994" + ) } }, "cooling_setpoint": 81, @@ -6255,10 +7579,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994/setpoints" + ) }, }, "name": "thermostat", @@ -6273,7 +7603,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_increment": 1.0, "status": "", "status_icon": None, - "system_status": "System " "Idle", + "system_status": "System Idle", "temperature": 74, }, { @@ -6284,7 +7614,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994/zone_mode" + ), "method": "POST", } }, @@ -6295,7 +7628,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -6308,7 +7641,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994/run_mode" + ), "method": "POST", } }, @@ -6319,25 +7655,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -6347,24 +7681,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83260994", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83260994" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83260994", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83260994" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83260994", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83260994" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83260994&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83260994" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -6385,7 +7745,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994" + "/preset_selected" + ) } }, "current_value": 0, @@ -6403,7 +7767,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994/zone_mode" + ) } }, "current_value": "AUTO", @@ -6421,21 +7788,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -6446,7 +7816,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260994" + "/scheduling_enabled" + ) } }, "current_value": True, @@ -6467,7 +7841,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997" + ) } }, "cooling_setpoint": 81, @@ -6476,10 +7853,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/setpoints" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997/setpoints" + ) }, }, "name": "thermostat", @@ -6494,7 +7877,7 @@ async def test_diagnostics(hass, hass_client): "setpoint_increment": 1.0, "status": "", "status_icon": None, - "system_status": "System " "Idle", + "system_status": "System Idle", "temperature": 75, }, { @@ -6505,7 +7888,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997/zone_mode" + ), "method": "POST", } }, @@ -6516,7 +7902,7 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_mode", - "label": "Zone " "Mode", + "label": "Zone Mode", "value": "thermostat_mode", }, {"label": "Auto", "value": "AUTO"}, @@ -6529,7 +7915,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997/run_mode" + ), "method": "POST", } }, @@ -6540,25 +7929,23 @@ async def test_diagnostics(hass, hass_client): { "header": True, "id": "thermostat_run_mode", - "label": "Run " "Mode", + "label": "Run Mode", "value": "thermostat_run_mode", }, { "id": "info_text", "info": True, - "label": "Follow " - "or " - "override " - "the " - "schedule.", + "label": ( + "Follow or override the schedule." + ), "value": "info_text", }, { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -6568,24 +7955,50 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997" + "/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83260997", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier" + "=XxlZone-83260997" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83260997", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier" + "=XxlZone-83260997" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83260997", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier" + "=XxlZone-83260997" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83260997&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83260997" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -6606,7 +8019,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997/preset_selected" + ) } }, "current_value": 0, @@ -6624,7 +8040,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997/zone_mode" + ) } }, "current_value": "AUTO", @@ -6642,21 +8061,24 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997/run_mode" + ) } }, "current_value": "permanent_hold", "labels": [ - "Permanent " "Hold", - "Run " "Schedule", + "Permanent Hold", + "Run Schedule", ], "options": [ { - "label": "Permanent " "Hold", + "label": "Permanent Hold", "value": "permanent_hold", }, { - "label": "Run " "Schedule", + "label": "Run Schedule", "value": "run_schedule", }, ], @@ -6667,7 +8089,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997/scheduling_enabled" + ) } }, "current_value": True, @@ -6691,7 +8116,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_fan_mode": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059652/fan_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059652/fan_mode" + ), "method": "POST", } }, @@ -6716,11 +8144,17 @@ async def test_diagnostics(hass, hass_client): { "actions": { "get_monthly_runtime_history": { - "href": "https://www.mynexia.com/mobile/runtime_history/2059652?report_type=monthly", + "href": ( + "https://www.mynexia.com/mobile/runtime_history" + "/2059652?report_type=monthly" + ), "method": "GET", }, "get_runtime_history": { - "href": "https://www.mynexia.com/mobile/runtime_history/2059652?report_type=daily", + "href": ( + "https://www.mynexia.com/mobile/runtime_history" + "/2059652?report_type=daily" + ), "method": "GET", }, }, @@ -6744,7 +8178,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059652/fan_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059652/fan_mode" + ) } }, "current_value": "auto", @@ -6761,7 +8198,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059652/fan_speed" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059652/fan_speed" + ) } }, "current_value": 0.35, @@ -6819,7 +8259,11 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059652/fan_circulation_time" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059652" + "/fan_circulation_time" + ) } }, "current_value": 30, @@ -6854,7 +8298,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059652/air_cleaner_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059652/air_cleaner_mode" + ) } }, "current_value": "auto", @@ -6871,7 +8318,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059652/dehumidify" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059652/dehumidify" + ) } }, "current_value": 0.5, @@ -6892,7 +8342,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_thermostats/2059652/scale" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_thermostats/2059652/scale" + ) } }, "current_value": "f", @@ -6914,7 +8367,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83260991" + ) } }, "cooling_setpoint": 80, @@ -6943,7 +8398,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/zone_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/zone_mode" + ), "method": "POST", } }, @@ -6967,7 +8425,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/run_mode" + ), "method": "POST", } }, @@ -6984,9 +8445,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -7001,24 +8460,43 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83260991", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_active_schedule" + "?device_identifier=XxlZone-83260991" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83260991", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/get_default_schedule" + "?device_identifier=XxlZone-83260991" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83260991", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules/set_active_schedule" + "?device_identifier=XxlZone-83260991" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83260991&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83260991" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -7036,7 +8514,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/preset_selected" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/preset_selected" + ) } }, "current_value": 0, @@ -7054,7 +8535,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/zone_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/zone_mode" + ) } }, "current_value": "OFF", @@ -7072,7 +8556,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/run_mode" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/run_mode" + ) } }, "current_value": "permanent_hold", @@ -7091,7 +8578,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260991/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260991/scheduling_enabled" + ) } }, "current_value": True, @@ -7112,7 +8602,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83260994" + ) } }, "cooling_setpoint": 81, @@ -7121,10 +8613,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260994/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260994/setpoints" + ) }, }, "name": "thermostat", @@ -7150,7 +8648,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/zone_mode", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260994/zone_mode" + ), "method": "POST", } }, @@ -7174,7 +8675,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/run_mode", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260994/run_mode" + ), "method": "POST", } }, @@ -7191,9 +8695,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -7208,24 +8710,46 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260994/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83260994", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier=XxlZone-83260994" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83260994", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier=XxlZone-83260994" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83260994", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier=XxlZone-83260994" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83260994&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83260994" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -7243,7 +8767,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/preset_selected" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260994/preset_selected" + ) } }, "current_value": 0, @@ -7261,7 +8788,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/zone_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260994/zone_mode" + ) } }, "current_value": "AUTO", @@ -7279,7 +8809,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/run_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260994/run_mode" + ) } }, "current_value": "permanent_hold", @@ -7298,7 +8831,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260994/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260994/scheduling_enabled" + ) } }, "current_value": True, @@ -7319,7 +8855,9 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones/83260997" + ) } }, "cooling_setpoint": 81, @@ -7328,10 +8866,16 @@ async def test_diagnostics(hass, hass_client): { "actions": { "set_cool_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260997/setpoints" + ) }, "set_heat_setpoint": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/setpoints" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260997/setpoints" + ) }, }, "name": "thermostat", @@ -7357,7 +8901,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/zone_mode", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260997/zone_mode" + ), "method": "POST", } }, @@ -7381,7 +8928,10 @@ async def test_diagnostics(hass, hass_client): { "actions": { "update_thermostat_run_mode": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/run_mode", + "href": ( + "https://www.mynexia.com/mobile" + "/xxl_zones/83260997/run_mode" + ), "method": "POST", } }, @@ -7398,9 +8948,7 @@ async def test_diagnostics(hass, hass_client): { "id": "info_text", "info": True, - "label": "Follow or " - "override the " - "schedule.", + "label": "Follow or override the schedule.", "value": "info_text", }, { @@ -7415,24 +8963,46 @@ async def test_diagnostics(hass, hass_client): "actions": { "enable_scheduling": { "data": {"value": True}, - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/scheduling_enabled", + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260997/scheduling_enabled" + ), "method": "POST", }, "get_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_active_schedule?device_identifier=XxlZone-83260997", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_active_schedule" + "?device_identifier=XxlZone-83260997" + ), "method": "POST", }, "get_default_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/get_default_schedule?device_identifier=XxlZone-83260997", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/get_default_schedule" + "?device_identifier=XxlZone-83260997" + ), "method": "GET", }, "set_active_schedule": { - "href": "https://www.mynexia.com/mobile/thermostat_schedules/set_active_schedule?device_identifier=XxlZone-83260997", + "href": ( + "https://www.mynexia.com/mobile" + "/thermostat_schedules" + "/set_active_schedule" + "?device_identifier=XxlZone-83260997" + ), "method": "POST", }, }, "can_add_remove_periods": True, - "collection_url": "https://www.mynexia.com/mobile/schedules?device_identifier=XxlZone-83260997&house_id=123456", + "collection_url": ( + "https://www.mynexia.com/mobile/schedules" + "?device_identifier=XxlZone-83260997" + "&house_id=123456" + ), "enabled": True, "max_period_name_length": 10, "max_periods_per_day": 4, @@ -7450,7 +9020,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/preset_selected" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260997/preset_selected" + ) } }, "current_value": 0, @@ -7468,7 +9041,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/zone_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260997/zone_mode" + ) } }, "current_value": "AUTO", @@ -7486,7 +9062,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/run_mode" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260997/run_mode" + ) } }, "current_value": "permanent_hold", @@ -7505,7 +9084,10 @@ async def test_diagnostics(hass, hass_client): { "_links": { "self": { - "href": "https://www.mynexia.com/mobile/xxl_zones/83260997/scheduling_enabled" + "href": ( + "https://www.mynexia.com/mobile/xxl_zones" + "/83260997/scheduling_enabled" + ) } }, "current_value": True, diff --git a/tests/components/nexia/test_scene.py b/tests/components/nexia/test_scene.py index 309af6b523d..dd8a34213d8 100644 --- a/tests/components/nexia/test_scene.py +++ b/tests/components/nexia/test_scene.py @@ -11,21 +11,23 @@ async def test_automation_scenes(hass): state = hass.states.get("scene.away_short") expected_attributes = { "attribution": "Data provided by Trane Technologies", - "description": "When IFTTT activates the automation Upstairs " - "West Wing will permanently hold the heat to 63.0 " - "and cool to 80.0 AND Downstairs East Wing will " - "permanently hold the heat to 63.0 and cool to " - "79.0 AND Downstairs West Wing will permanently " - "hold the heat to 63.0 and cool to 79.0 AND " - "Upstairs West Wing will permanently hold the " - "heat to 63.0 and cool to 81.0 AND Upstairs West " - "Wing will change Fan Mode to Auto AND Downstairs " - "East Wing will change Fan Mode to Auto AND " - "Downstairs West Wing will change Fan Mode to " - "Auto AND Activate the mode named 'Away Short' " - "AND Master Suite will permanently hold the heat " - "to 63.0 and cool to 79.0 AND Master Suite will " - "change Fan Mode to Auto", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will permanently hold the heat to 63.0 " + "and cool to 80.0 AND Downstairs East Wing will " + "permanently hold the heat to 63.0 and cool to " + "79.0 AND Downstairs West Wing will permanently " + "hold the heat to 63.0 and cool to 79.0 AND " + "Upstairs West Wing will permanently hold the " + "heat to 63.0 and cool to 81.0 AND Upstairs West " + "Wing will change Fan Mode to Auto AND Downstairs " + "East Wing will change Fan Mode to Auto AND " + "Downstairs West Wing will change Fan Mode to " + "Auto AND Activate the mode named 'Away Short' " + "AND Master Suite will permanently hold the heat " + "to 63.0 and cool to 79.0 AND Master Suite will " + "change Fan Mode to Auto" + ), "friendly_name": "Away Short", "icon": "mdi:script-text-outline", } @@ -38,13 +40,15 @@ async def test_automation_scenes(hass): state = hass.states.get("scene.power_outage") expected_attributes = { "attribution": "Data provided by Trane Technologies", - "description": "When IFTTT activates the automation Upstairs " - "West Wing will permanently hold the heat to 55.0 " - "and cool to 90.0 AND Downstairs East Wing will " - "permanently hold the heat to 55.0 and cool to " - "90.0 AND Downstairs West Wing will permanently " - "hold the heat to 55.0 and cool to 90.0 AND " - "Activate the mode named 'Power Outage'", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will permanently hold the heat to 55.0 " + "and cool to 90.0 AND Downstairs East Wing will " + "permanently hold the heat to 55.0 and cool to " + "90.0 AND Downstairs West Wing will permanently " + "hold the heat to 55.0 and cool to 90.0 AND " + "Activate the mode named 'Power Outage'" + ), "friendly_name": "Power Outage", "icon": "mdi:script-text-outline", } @@ -57,11 +61,13 @@ async def test_automation_scenes(hass): state = hass.states.get("scene.power_restored") expected_attributes = { "attribution": "Data provided by Trane Technologies", - "description": "When IFTTT activates the automation Upstairs " - "West Wing will Run Schedule AND Downstairs East " - "Wing will Run Schedule AND Downstairs West Wing " - "will Run Schedule AND Activate the mode named " - "'Home'", + "description": ( + "When IFTTT activates the automation Upstairs " + "West Wing will Run Schedule AND Downstairs East " + "Wing will Run Schedule AND Downstairs West Wing " + "will Run Schedule AND Activate the mode named " + "'Home'" + ), "friendly_name": "Power Restored", "icon": "mdi:script-text-outline", }