Skip to content

Commit

Permalink
Fix temperature sensors (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaskivskyi authored Nov 13, 2023
1 parent 3990332 commit cd329d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/asusrouter/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ async def _get_data_sysinfo(self) -> dict[str, Any]:
async def _get_data_temperature(self) -> dict[str, Any]:
"""Get temperarture data from the device."""

return await self._get_data(AsusData.TEMPERATURE)
return await self._get_data_modern(AsusData.TEMPERATURE)

async def _get_data_wan(self) -> dict[str, Any]:
"""Get WAN data from the device."""
Expand Down
8 changes: 4 additions & 4 deletions custom_components/asusrouter/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@
}
LABELS_TEMPERATURE = {
"cpu": "Temperature CPU",
str(Wlan.FREQ_2G): "Temperature 2.4 GHz",
str(Wlan.FREQ_5G): "Temperature 5 GHz",
str(Wlan.FREQ_5G2): "Temperature 5 GHz-2",
str(Wlan.FREQ_6G): "Temperature 6 GHz",
Wlan.FREQ_2G: "Temperature 2.4 GHz",
Wlan.FREQ_5G: "Temperature 5 GHz",
Wlan.FREQ_5G2: "Temperature 5 GHz-2",
Wlan.FREQ_6G: "Temperature 6 GHz",
}
LABELS_WLAN = {
WLAN_2GHZ: LABEL_WLAN_2GHZ,
Expand Down

0 comments on commit cd329d7

Please sign in to comment.