mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
switch.tplink: fix overlooked issue with statically defined names (#10053)
This commit is contained in:
parent
f9d89a016e
commit
f57e307c7a
@ -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 = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user