File tree Expand file tree Collapse file tree
custom_components/tplink_deco Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434ATTR_SIGNAL_BAND2_4 = "signal_band2_4"
3535ATTR_SIGNAL_BAND5 = "signal_band5"
3636ATTR_UP_KILOBYTES_PER_S = "up_kilobytes_per_s"
37+ ATTR_UI_DEVICE_NAME = "ui_device_name"
3738
3839# Config
3940CONF_CLIENT_PREFIX = "client_prefix"
Original file line number Diff line number Diff line change 2929from .const import ATTR_MASTER
3030from .const import ATTR_SIGNAL_BAND2_4
3131from .const import ATTR_SIGNAL_BAND5
32+ from .const import ATTR_UI_DEVICE_NAME
3233from .const import ATTR_UP_KILOBYTES_PER_S
3334from .const import CONF_CLIENT_POSTFIX
3435from .const import CONF_CLIENT_PREFIX
@@ -404,6 +405,7 @@ def extra_state_attributes(self) -> dict[str:Any]:
404405 ATTR_UP_KILOBYTES_PER_S : self ._client .up_kilobytes_per_s ,
405406 ATTR_DECO_DEVICE : None if deco is None else deco .name ,
406407 ATTR_DECO_MAC : self ._attr_deco_mac ,
408+ ATTR_UI_DEVICE_NAME : self ._attr_name ,
407409 }
408410
409411 @property
You can’t perform that action at this time.
0 commit comments