forked from home-assistant/core
switch.tplink: fix overlooked issue with statically defined names (#10053)
This commit is contained in:
@@ -45,7 +45,7 @@ class SmartPlugSwitch(SwitchDevice):
|
|||||||
def __init__(self, smartplug, name):
|
def __init__(self, smartplug, name):
|
||||||
"""Initialize the switch."""
|
"""Initialize the switch."""
|
||||||
self.smartplug = smartplug
|
self.smartplug = smartplug
|
||||||
self._name = None
|
self._name = name
|
||||||
self._state = None
|
self._state = None
|
||||||
# Set up emeter cache
|
# Set up emeter cache
|
||||||
self._emeter_params = {}
|
self._emeter_params = {}
|
||||||
|
Reference in New Issue
Block a user