Fix implicit device name in wiz switch (#101914)

pull/101934/head
J. Nick Koston 2023-10-12 23:05:25 -10:00 committed by GitHub
parent fecaf9aa60
commit 5f91bdcfc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ async def async_setup_entry(
class WizSocketEntity(WizToggleEntity, SwitchEntity): class WizSocketEntity(WizToggleEntity, SwitchEntity):
"""Representation of a WiZ socket.""" """Representation of a WiZ socket."""
_attr_name = None
def __init__(self, wiz_data: WizData, name: str) -> None: def __init__(self, wiz_data: WizData, name: str) -> None:
"""Initialize a WiZ socket.""" """Initialize a WiZ socket."""
super().__init__(wiz_data, name) super().__init__(wiz_data, name)