mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Fix missing uptime sensor in some Fritz scenarios (#67073)
* Fix missing uptime sensor in some Fritz scenarios * apply review comment
This commit is contained in:
parent
5e938ea61b
commit
0c9be633f5
@ -170,7 +170,7 @@ SENSOR_TYPES: tuple[FritzSensorEntityDescription, ...] = (
|
|||||||
device_class=SensorDeviceClass.TIMESTAMP,
|
device_class=SensorDeviceClass.TIMESTAMP,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=_retrieve_device_uptime_state,
|
value_fn=_retrieve_device_uptime_state,
|
||||||
is_suitable=lambda info: info.mesh_role != MeshRoles.NONE,
|
is_suitable=lambda info: True,
|
||||||
),
|
),
|
||||||
FritzSensorEntityDescription(
|
FritzSensorEntityDescription(
|
||||||
key="connection_uptime",
|
key="connection_uptime",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user