Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pyintesishome/intesisbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import logging
from typing import List

from .intesisbase import IntesisBase

from .const import (
DEVICE_INTESISBOX,
INTESIS_NULL,
Expand All @@ -21,6 +19,7 @@
INTESISBOX_MODE_MAP,
)
from .helpers import uint32
from .intesisbase import IntesisBase

_LOGGER = logging.getLogger("pyintesishome")

Expand Down
3 changes: 2 additions & 1 deletion pyintesishome/intesishomelocal.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def _get_fan_map(self, device_id):
device_model = self._info.get("deviceModel", "") if self._info else ""
if 0 not in fan_values and "MH-AC-WIFI" in device_model:
fan_values = [0] + fan_values
for map_key, values in INTESIS_MAP[67]["values"].items():
for values in INTESIS_MAP[67]["values"].values():
if sorted(values.keys()) == fan_values:
return values
return INTESIS_MAP[67]["values"][63]
Expand All @@ -334,6 +334,7 @@ def get_horizontal_swing_list(self, device_id) -> list:
INTESIS_MAP[uid]["values"][i]
for i in self._datapoints[uid]["descr"]["states"]
]

def has_horizontal_swing(self, device_id) -> bool:
"""Entity supports horizontal swing."""
return self._has_datapoint("hvane")
Expand Down
Loading