Use POWER_WATT constant (#33984)

This commit is contained in:
springstan authored and GitHub committed 2020-04-11 15:40:59 +02:00
1 parent 2ab79115d1
commit f839ba00eb
14 files changed
+56 -35

No files matched your search

@@ -414,7 +414,7 @@ def _get_wind_direction(wind_direction_degree: float) -> str:
if 236.25 <= wind_direction_degree < 258.75:
return "WSW"
if 258.75 <= wind_direction_degree < 281.25:
return "W"
return POWER_WATT
if 281.25 <= wind_direction_degree < 303.75:
return "WNW"
if 303.75 <= wind_direction_degree < 326.25: