mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Address late review for Fritz entity_category (#58141)
This commit is contained in:
parent
50686bd06d
commit
c7ff6eb5ee
@ -27,7 +27,6 @@ from homeassistant.const import (
|
|||||||
DATA_RATE_KILOBITS_PER_SECOND,
|
DATA_RATE_KILOBITS_PER_SECOND,
|
||||||
DATA_RATE_KILOBYTES_PER_SECOND,
|
DATA_RATE_KILOBYTES_PER_SECOND,
|
||||||
DEVICE_CLASS_TIMESTAMP,
|
DEVICE_CLASS_TIMESTAMP,
|
||||||
ENTITY_CATEGORY_CONFIG,
|
|
||||||
ENTITY_CATEGORY_DIAGNOSTIC,
|
ENTITY_CATEGORY_DIAGNOSTIC,
|
||||||
SIGNAL_STRENGTH_DECIBELS,
|
SIGNAL_STRENGTH_DECIBELS,
|
||||||
)
|
)
|
||||||
@ -198,7 +197,7 @@ SENSOR_TYPES: tuple[FritzSensorEntityDescription, ...] = (
|
|||||||
name="Max Connection Upload Throughput",
|
name="Max Connection Upload Throughput",
|
||||||
native_unit_of_measurement=DATA_RATE_KILOBITS_PER_SECOND,
|
native_unit_of_measurement=DATA_RATE_KILOBITS_PER_SECOND,
|
||||||
icon="mdi:upload",
|
icon="mdi:upload",
|
||||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||||
value_fn=_retrieve_max_kb_s_sent_state,
|
value_fn=_retrieve_max_kb_s_sent_state,
|
||||||
),
|
),
|
||||||
FritzSensorEntityDescription(
|
FritzSensorEntityDescription(
|
||||||
@ -206,7 +205,7 @@ SENSOR_TYPES: tuple[FritzSensorEntityDescription, ...] = (
|
|||||||
name="Max Connection Download Throughput",
|
name="Max Connection Download Throughput",
|
||||||
native_unit_of_measurement=DATA_RATE_KILOBITS_PER_SECOND,
|
native_unit_of_measurement=DATA_RATE_KILOBITS_PER_SECOND,
|
||||||
icon="mdi:download",
|
icon="mdi:download",
|
||||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||||
value_fn=_retrieve_max_kb_s_received_state,
|
value_fn=_retrieve_max_kb_s_received_state,
|
||||||
),
|
),
|
||||||
FritzSensorEntityDescription(
|
FritzSensorEntityDescription(
|
||||||
|
@ -652,6 +652,7 @@ class FritzBoxWifiSwitch(FritzBoxBaseSwitch, SwitchEntity):
|
|||||||
self._fritzbox_tools = fritzbox_tools
|
self._fritzbox_tools = fritzbox_tools
|
||||||
|
|
||||||
self._attributes = {}
|
self._attributes = {}
|
||||||
|
self._attr_entity_category = ENTITY_CATEGORY_CONFIG
|
||||||
self._network_num = network_num
|
self._network_num = network_num
|
||||||
|
|
||||||
switch_info = SwitchInfo(
|
switch_info = SwitchInfo(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user