Skip to content

Commit

Permalink
Sort diagnostics (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ authored Oct 15, 2023
1 parent 2ccb3ad commit 2c2bb45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/homematicip_local/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Diagnostics support for Homematic(IP) Local."""
from __future__ import annotations

from collections.abc import Mapping, Set
from collections.abc import Mapping
from dataclasses import asdict
from typing import Any

Expand Down Expand Up @@ -36,9 +36,9 @@ async def async_get_config_entry_diagnostics(
return diag


def get_devices_per_type_stats(central: CentralUnit) -> Set[str]:
def get_devices_per_type_stats(central: CentralUnit) -> tuple[str, ...]:
"""Return the central statistics for devices by type."""
return set({d.device_type for d in central.devices})
return tuple(sorted({d.device_type for d in central.devices}))


def get_entities_by_platform_stats(
Expand Down

0 comments on commit 2c2bb45

Please sign in to comment.