Fix implicit device name in wiz switch (#101914)

This commit is contained in:
J. Nick Koston 2023-10-12 23:05:25 -10:00 committed by Franck Nijhof
parent e17a25ca4a
commit 2fac26c6c6
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

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