Use device class for DLink (#96567)
This commit is contained in:
parent
cb1f365482
commit
0ca4da5592
2 changed files with 4 additions and 3 deletions
|
@ -17,7 +17,6 @@ SCAN_INTERVAL = timedelta(minutes=2)
|
|||
|
||||
SWITCH_TYPE = SwitchEntityDescription(
|
||||
key="switch",
|
||||
name="Switch",
|
||||
)
|
||||
|
||||
|
||||
|
@ -34,6 +33,8 @@ async def async_setup_entry(
|
|||
class SmartPlugSwitch(DLinkEntity, SwitchEntity):
|
||||
"""Representation of a D-Link Smart Plug switch."""
|
||||
|
||||
_attr_name = None
|
||||
|
||||
@property
|
||||
def extra_state_attributes(self) -> dict[str, Any]:
|
||||
"""Return the state attributes of the device."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue