From cd6f3a0fe52a14fc4e54c5d33d4738c8cb1098e3 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sun, 28 Sep 2025 22:40:10 +0200 Subject: [PATCH] Add newly added cpu temperatures to diagnostics in FRITZ!Tools (#153168) --- homeassistant/components/fritz/diagnostics.py | 3 +++ tests/components/fritz/snapshots/test_diagnostics.ambr | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/homeassistant/components/fritz/diagnostics.py b/homeassistant/components/fritz/diagnostics.py index b9ae9edf04df..e8cad15ec3b9 100644 --- a/homeassistant/components/fritz/diagnostics.py +++ b/homeassistant/components/fritz/diagnostics.py @@ -46,6 +46,9 @@ async def async_get_config_entry_diagnostics( } for _, device in avm_wrapper.devices.items() ], + "cpu_temperatures": await hass.async_add_executor_job( + avm_wrapper.fritz_status.get_cpu_temperatures + ), "wan_link_properties": await avm_wrapper.async_get_wan_link_properties(), }, } diff --git a/tests/components/fritz/snapshots/test_diagnostics.ambr b/tests/components/fritz/snapshots/test_diagnostics.ambr index c2ca866ceb6e..dead09cae4a8 100644 --- a/tests/components/fritz/snapshots/test_diagnostics.ambr +++ b/tests/components/fritz/snapshots/test_diagnostics.ambr @@ -12,6 +12,11 @@ }), ]), 'connection_type': 'WANPPPConnection', + 'cpu_temperatures': list([ + 69, + 68, + 67, + ]), 'current_firmware': '7.29', 'discovered_services': list([ 'DeviceInfo1',