Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsaxon committed Jan 9, 2020
1 parent 51d403c commit 882b842
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions pysonofflanr3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async def state_callback(device):
__url__ = "https://github.com/mattsaxon/pysonofflan"

# flake8: noqa
from .client import SonoffLANModeClient
from .discover import Discover
from .sonoffdevice import SonoffDevice
from .sonoffswitch import SonoffSwitch
from client import SonoffLANModeClient
from discover import Discover
from sonoffdevice import SonoffDevice
from sonoffswitch import SonoffSwitch
2 changes: 1 addition & 1 deletion pysonofflanr3/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import click_log
from click_log import ClickHandler

from . import SonoffSwitch, Discover
from pysonofflanr3 import SonoffSwitch, Discover

if sys.version_info < (3, 5):
print("To use this script you need python 3.5 or newer! got %s"
Expand Down
2 changes: 1 addition & 1 deletion pysonofflanr3/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import requests
from zeroconf import ServiceBrowser, Zeroconf

from . import sonoffcrypto
from pysonofflanr3 import sonoffcrypto
import socket


Expand Down
2 changes: 1 addition & 1 deletion pysonofflanr3/sonoffdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import traceback

from .client import SonoffLANModeClient
from pysonofflanr3 import SonoffLANModeClient


class SonoffDevice(object):
Expand Down
4 changes: 2 additions & 2 deletions pysonofflanr3/sonoffswitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import logging
from typing import Callable, Awaitable, Dict

from .sonoffdevice import SonoffDevice
from .client import SonoffLANModeClient
from pysonofflanr3 import SonoffDevice
from pysonofflanr3 import SonoffLANModeClient


class SonoffSwitch(SonoffDevice):
Expand Down

0 comments on commit 882b842

Please sign in to comment.