Fix implicit use of device name in TPLink switch (#97293)

This commit is contained in:
Franck Nijhof
2023-07-27 09:22:22 +02:00
committed by GitHub
parent 265fe51169
commit c2bbb0b5db

View File

@@ -84,6 +84,8 @@ class SmartPlugLedSwitch(CoordinatedTPLinkEntity, SwitchEntity):
class SmartPlugSwitch(CoordinatedTPLinkEntity, SwitchEntity):
"""Representation of a TPLink Smart Plug switch."""
_attr_name = None
def __init__(
self,
device: SmartDevice,