217 files

This commit is contained in:
Home Assistant Version Control
2026-07-30 23:59:38 +00:00
parent d43a63ad29
commit 7b5e46e702
217 changed files with 15978 additions and 3912 deletions
@@ -126,7 +126,7 @@ class PowerProfile:
model: str,
directory: str,
json_data: ConfigType,
sub_profiles: list[tuple[str, dict]] | None = None,
sub_profiles: list[tuple[str, dict[str, Any]]] | None = None,
) -> None:
self._manufacturer = manufacturer
self._model = model.replace("#slash#", "/")
@@ -230,9 +230,9 @@ class PowerProfile:
return config
@property
def composite_config(self) -> list | None:
def composite_config(self) -> list[ConfigType] | None:
"""Get configuration to set up composite strategy."""
return cast(list, self._json_data.get("composite_config"))
return cast(list[ConfigType], self._json_data.get("composite_config"))
@property
def playbook_config(self) -> ConfigType | None:
@@ -356,7 +356,7 @@ class PowerProfile:
return "remarks_smart_dimmer"
return None
async def get_sub_profiles(self) -> list[tuple[str, dict]]:
async def get_sub_profiles(self) -> list[tuple[str, dict[str, Any]]]:
"""Get listing of possible sub profiles and their corresponding JSON data."""
return self._sub_profiles