Skip to content

Commit

Permalink
Move leshow fan implementation to integrations/fan/leshow/ (#1305)
Browse files Browse the repository at this point in the history
* Move leshow fan implementation to integrations/fan/leshow/

* Move tests under tests/
  • Loading branch information
rytilahti authored Jan 16, 2022
1 parent 93737b4 commit 17e713a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
5 changes: 1 addition & 4 deletions miio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
from miio.chuangmi_plug import ChuangmiPlug, Plug, PlugV1, PlugV3
from miio.cooker import Cooker
from miio.curtain_youpin import CurtainMiot
from miio.fan_leshow import FanLeshow
from miio.gateway import Gateway
from miio.heater import Heater
from miio.heater_miot import HeaterMiot
from miio.huizuo import Huizuo, HuizuoLampFan, HuizuoLampHeater, HuizuoLampScene
from miio.integrations.fan.dmaker import Fan1C, FanMiot, FanP5, FanP9, FanP10, FanP11
from miio.integrations.fan.leshow import FanLeshow
from miio.integrations.fan.zhimi import Fan, FanZA5
from miio.integrations.light.philips import (
Ceil,
Expand Down Expand Up @@ -80,9 +80,6 @@
from miio.wifispeaker import WifiSpeaker
from miio.yeelight_dual_switch import YeelightDualControlModule

from .device import Device, DeviceStatus
from .miot_device import MiotDevice

from miio.discovery import Discovery

__version__ = version("python-miio")
2 changes: 2 additions & 0 deletions miio/integrations/fan/leshow/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# flake8: noqa
from .fan_leshow import FanLeshow
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

import click

from .click_common import EnumType, command, format_output
from .device import Device, DeviceStatus
from .exceptions import DeviceException
from miio import Device, DeviceException, DeviceStatus
from miio.click_common import EnumType, command, format_output

_LOGGER = logging.getLogger(__name__)

Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

import pytest

from miio import FanLeshow
from miio.fan_leshow import (
from miio.tests.dummies import DummyDevice

from ..fan_leshow import (
MODEL_FAN_LESHOW_SS4,
FanLeshow,
FanLeshowException,
FanLeshowStatus,
OperationMode,
)

from .dummies import DummyDevice


class DummyFanLeshow(DummyDevice, FanLeshow):
def __init__(self, *args, **kwargs):
Expand Down

0 comments on commit 17e713a

Please sign in to comment.