Fix diagnostics Sensibo (#96336)

This commit is contained in:
G Johansson 2023-07-11 18:24:40 +02:00 committed by GitHub
parent a226b90943
commit 49b6c8ed6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 22 deletions

View file

@ -1,20 +1,5 @@
# serializer version: 1
# name: test_diagnostics
dict({
'fanLevel': 'high',
'horizontalSwing': 'stopped',
'light': 'on',
'mode': 'heat',
'on': True,
'swing': 'stopped',
'targetTemperature': 25,
'timestamp': dict({
'secondsAgo': -1,
'time': '2022-04-30T11:23:30.019722Z',
}),
})
# ---
# name: test_diagnostics.1
dict({
'modes': dict({
'auto': dict({
@ -206,28 +191,28 @@
}),
})
# ---
# name: test_diagnostics.2
# name: test_diagnostics.1
dict({
'low': 'low',
'medium': 'medium',
'quiet': 'quiet',
})
# ---
# name: test_diagnostics.3
# name: test_diagnostics.2
dict({
'fixedmiddletop': 'fixedMiddleTop',
'fixedtop': 'fixedTop',
'stopped': 'stopped',
})
# ---
# name: test_diagnostics.4
# name: test_diagnostics.3
dict({
'fixedcenterleft': 'fixedCenterLeft',
'fixedleft': 'fixedLeft',
'stopped': 'stopped',
})
# ---
# name: test_diagnostics.5
# name: test_diagnostics.4
dict({
'fanlevel': 'low',
'horizontalswing': 'stopped',
@ -239,7 +224,7 @@
'temperatureunit': 'c',
})
# ---
# name: test_diagnostics.6
# name: test_diagnostics.5
dict({
'fanlevel': 'high',
'horizontalswing': 'stopped',
@ -251,7 +236,7 @@
'temperatureunit': 'c',
})
# ---
# name: test_diagnostics.7
# name: test_diagnostics.6
dict({
})
# ---

View file

@ -21,7 +21,6 @@ async def test_diagnostics(
diag = await get_diagnostics_for_config_entry(hass, hass_client, entry)
assert diag["ABC999111"]["ac_states"] == snapshot
assert diag["ABC999111"]["full_capabilities"] == snapshot
assert diag["ABC999111"]["fan_modes_translated"] == snapshot
assert diag["ABC999111"]["swing_modes_translated"] == snapshot