switch.tplink: fix overlooked issue with statically defined names (#10053)

pull/10069/head
Teemu R 2017-10-23 09:41:47 +02:00 committed by Fabian Affolter
parent 48c86e07fa
commit ed82f23da3
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class SmartPlugSwitch(SwitchDevice):
def __init__(self, smartplug, name):
"""Initialize the switch."""
self.smartplug = smartplug
self._name = None
self._name = name
self._state = None
# Set up emeter cache
self._emeter_params = {}