Skip to content

Commit

Permalink
pulling the unnecessary libdyson changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dotvezz committed Sep 28, 2023
1 parent dc1fc9f commit f6ed170
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions custom_components/dyson_local/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ def preset_mode(self) -> Optional[str]:
"""Return the current selected preset mode."""
if self._device.auto_mode:
return PRESET_MODE_AUTO
elif self._device.normal_mode:
else:
return PRESET_MODE_NORMAL
return None

def set_preset_mode(self, preset_mode: str) -> None:
"""Configure the preset mode."""
Expand Down
5 changes: 0 additions & 5 deletions custom_components/dyson_local/vendor/libdyson/dyson_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,6 @@ def is_on(self) -> bool:
def auto_mode(self) -> bool:
"""Return auto mode status."""

@property
@abstractmethod
def normal_mode(self) -> bool:
"""Return normal mode status."""

@property
@abstractmethod
def oscillation(self) -> bool:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ def is_on(self) -> bool:
def auto_mode(self) -> bool:
"""Return auto mode status."""
return self.fan_mode == "AUTO"

@property
def normal_mode(self) -> bool:
"""Return auto mode status."""
return self.fan_mode == "NORMAL"

@property
def oscillation(self) -> bool:
Expand Down

0 comments on commit f6ed170

Please sign in to comment.