diff --git a/homeassistant/components/switch/tplink.py b/homeassistant/components/switch/tplink.py index df0050ff979a110a9f379be0a95500d36a06b109..8fa6493862c652d342b3bf0cc559fd12962670bb 100644 --- a/homeassistant/components/switch/tplink.py +++ b/homeassistant/components/switch/tplink.py @@ -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 = {}