Skip to content

Commit cd6f3a0

Browse files
mib1185frenck
authored andcommitted
Add newly added cpu temperatures to diagnostics in FRITZ!Tools (home-assistant#153168)
1 parent af28883 commit cd6f3a0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

homeassistant/components/fritz/diagnostics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ async def async_get_config_entry_diagnostics(
4646
}
4747
for _, device in avm_wrapper.devices.items()
4848
],
49+
"cpu_temperatures": await hass.async_add_executor_job(
50+
avm_wrapper.fritz_status.get_cpu_temperatures
51+
),
4952
"wan_link_properties": await avm_wrapper.async_get_wan_link_properties(),
5053
},
5154
}

tests/components/fritz/snapshots/test_diagnostics.ambr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
}),
1313
]),
1414
'connection_type': 'WANPPPConnection',
15+
'cpu_temperatures': list([
16+
69,
17+
68,
18+
67,
19+
]),
1520
'current_firmware': '7.29',
1621
'discovered_services': list([
1722
'DeviceInfo1',

0 commit comments

Comments
 (0)