Add support for DNS host names (#104)

This commit is contained in:
K Henriksson
2018-01-17 13:03:19 -08:00
committed by Teemu R
parent a426488449
commit d40fff4f9e
7 changed files with 37 additions and 31 deletions

View File

@@ -42,9 +42,9 @@ class SmartBulb(SmartDevice):
BULB_STATE_OFF = 'OFF'
def __init__(self,
ip_address: str,
host: str,
protocol: 'TPLinkSmartHomeProtocol' = None) -> None:
SmartDevice.__init__(self, ip_address, protocol)
SmartDevice.__init__(self, host, protocol)
self.emeter_type = "smartlife.iot.common.emeter"
self.emeter_units = True