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:
Simone Chemelli
2022-02-23 01:02:12 +01:00
committed by GitHub
parent 5e938ea61b
commit 0c9be633f5

View File

@@ -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",