GREE Controller 0.15.0
This commit is contained in:
@@ -67,6 +67,10 @@ class GreeControllerCoordinator(DataUpdateCoordinator[dict[str, dict]]):
|
||||
expected["target_temperature"] = float(int(value + 0.5))
|
||||
if "fan_speed" in expected:
|
||||
expected["fan_speed"] = min(5, max(0, int(expected["fan_speed"])))
|
||||
if "swing_vertical" in expected:
|
||||
expected["swing_vertical"] = min(11, max(0, int(expected["swing_vertical"])))
|
||||
if "swing_horizontal" in expected:
|
||||
expected["swing_horizontal"] = min(6, max(0, int(expected["swing_horizontal"])))
|
||||
return expected
|
||||
|
||||
def _overlay_pending_device_commands(self, devices: dict[str, dict[str, Any]]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user