mirror of
https://github.com/home-assistant/core.git
synced 2025-08-17 19:41:45 +02: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:
@@ -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",
|
||||||
|
Reference in New Issue
Block a user