Refactor and drop py2 support (#49)

* move is_off property to SmartDevice, implement is_on for bulb and use it

* refactor by moving smartbulb and smartplug to their own classes

* drop python2 compatibility, make flake8 happy

* travis: remove 2.7, add 3.6
This commit is contained in:
Teemu R
2017-04-14 14:24:58 +02:00
committed by GitHub
parent c9662fcb7b
commit 86f14642c8
13 changed files with 497 additions and 497 deletions

View File

@@ -1,4 +1,5 @@
# flake8: noqa
from __future__ import absolute_import
from __future__ import unicode_literals
from pyHS100.pyHS100 import SmartBulb, SmartPlug, TPLinkSmartHomeProtocol, SmartPlugException
from .smartplug import SmartPlug
from .pyHS100 import SmartPlugException, SmartDevice
from .smartbulb import SmartBulb
from .protocol import TPLinkSmartHomeProtocol