Code styling tweaks to Nexia tests (#86660)

This commit is contained in:
Franck Nijhof 2023-01-25 23:36:17 +01:00 committed by GitHub
parent 1d1d69ca02
commit 4955dd3e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2383 additions and 795 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,21 +11,23 @@ async def test_automation_scenes(hass):
state = hass.states.get("scene.away_short") state = hass.states.get("scene.away_short")
expected_attributes = { expected_attributes = {
"attribution": "Data provided by Trane Technologies", "attribution": "Data provided by Trane Technologies",
"description": "When IFTTT activates the automation Upstairs " "description": (
"West Wing will permanently hold the heat to 63.0 " "When IFTTT activates the automation Upstairs "
"and cool to 80.0 AND Downstairs East Wing will " "West Wing will permanently hold the heat to 63.0 "
"permanently hold the heat to 63.0 and cool to " "and cool to 80.0 AND Downstairs East Wing will "
"79.0 AND Downstairs West Wing will permanently " "permanently hold the heat to 63.0 and cool to "
"hold the heat to 63.0 and cool to 79.0 AND " "79.0 AND Downstairs West Wing will permanently "
"Upstairs West Wing will permanently hold the " "hold the heat to 63.0 and cool to 79.0 AND "
"heat to 63.0 and cool to 81.0 AND Upstairs West " "Upstairs West Wing will permanently hold the "
"Wing will change Fan Mode to Auto AND Downstairs " "heat to 63.0 and cool to 81.0 AND Upstairs West "
"East Wing will change Fan Mode to Auto AND " "Wing will change Fan Mode to Auto AND Downstairs "
"Downstairs West Wing will change Fan Mode to " "East Wing will change Fan Mode to Auto AND "
"Auto AND Activate the mode named 'Away Short' " "Downstairs West Wing will change Fan Mode to "
"AND Master Suite will permanently hold the heat " "Auto AND Activate the mode named 'Away Short' "
"to 63.0 and cool to 79.0 AND Master Suite will " "AND Master Suite will permanently hold the heat "
"change Fan Mode to Auto", "to 63.0 and cool to 79.0 AND Master Suite will "
"change Fan Mode to Auto"
),
"friendly_name": "Away Short", "friendly_name": "Away Short",
"icon": "mdi:script-text-outline", "icon": "mdi:script-text-outline",
} }
@ -38,13 +40,15 @@ async def test_automation_scenes(hass):
state = hass.states.get("scene.power_outage") state = hass.states.get("scene.power_outage")
expected_attributes = { expected_attributes = {
"attribution": "Data provided by Trane Technologies", "attribution": "Data provided by Trane Technologies",
"description": "When IFTTT activates the automation Upstairs " "description": (
"West Wing will permanently hold the heat to 55.0 " "When IFTTT activates the automation Upstairs "
"and cool to 90.0 AND Downstairs East Wing will " "West Wing will permanently hold the heat to 55.0 "
"permanently hold the heat to 55.0 and cool to " "and cool to 90.0 AND Downstairs East Wing will "
"90.0 AND Downstairs West Wing will permanently " "permanently hold the heat to 55.0 and cool to "
"hold the heat to 55.0 and cool to 90.0 AND " "90.0 AND Downstairs West Wing will permanently "
"Activate the mode named 'Power Outage'", "hold the heat to 55.0 and cool to 90.0 AND "
"Activate the mode named 'Power Outage'"
),
"friendly_name": "Power Outage", "friendly_name": "Power Outage",
"icon": "mdi:script-text-outline", "icon": "mdi:script-text-outline",
} }
@ -57,11 +61,13 @@ async def test_automation_scenes(hass):
state = hass.states.get("scene.power_restored") state = hass.states.get("scene.power_restored")
expected_attributes = { expected_attributes = {
"attribution": "Data provided by Trane Technologies", "attribution": "Data provided by Trane Technologies",
"description": "When IFTTT activates the automation Upstairs " "description": (
"West Wing will Run Schedule AND Downstairs East " "When IFTTT activates the automation Upstairs "
"Wing will Run Schedule AND Downstairs West Wing " "West Wing will Run Schedule AND Downstairs East "
"will Run Schedule AND Activate the mode named " "Wing will Run Schedule AND Downstairs West Wing "
"'Home'", "will Run Schedule AND Activate the mode named "
"'Home'"
),
"friendly_name": "Power Restored", "friendly_name": "Power Restored",
"icon": "mdi:script-text-outline", "icon": "mdi:script-text-outline",
} }