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

@@ -32,9 +32,9 @@ class SmartPlug(SmartDevice):
SWITCH_STATE_UNKNOWN = 'UNKNOWN'
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 = "emeter"
self.emeter_units = False