@@ -24,7 +24,7 @@ class ButtonSetting(TypedDict):
2424 """Just a button, emits an event. Used for resets, etc."""
2525
2626 type : Literal ["event" ]
27- family : Sequence [str ]
27+ tags : Sequence [str ]
2828 title : str
2929 hint : str | None
3030
@@ -35,7 +35,7 @@ class BooleanSetting(TypedDict):
3535 """Checkbox container."""
3636
3737 type : Literal ["bool" ]
38- family : Sequence [str ]
38+ tags : Sequence [str ]
3939 title : str
4040 hint : str | None
4141
@@ -46,7 +46,7 @@ class MultipleSetting(TypedDict):
4646 """Select one container."""
4747
4848 type : Literal ["multiple" ]
49- family : Sequence [str ]
49+ tags : Sequence [str ]
5050 title : str
5151 hint : str | None
5252
@@ -58,7 +58,7 @@ class DiscreteSetting(TypedDict):
5858 """Ordered and fixed numerical options (etc. tdp)."""
5959
6060 type : Literal ["discrete" ]
61- family : Sequence [str ]
61+ tags : Sequence [str ]
6262 title : str
6363 hint : str | None
6464
@@ -70,7 +70,7 @@ class NumericalSetting(TypedDict):
7070 """Floating numerical option."""
7171
7272 type : Literal ["float" ]
73- family : Sequence [str ]
73+ tags : Sequence [str ]
7474 title : str
7575 hint : str | None
7676
@@ -83,7 +83,7 @@ class IntegerSetting(TypedDict):
8383 """Floating numerical option."""
8484
8585 type : Literal ["int" ]
86- family : Sequence [str ]
86+ tags : Sequence [str ]
8787 title : str
8888 hint : str | None
8989
@@ -102,7 +102,7 @@ class ColorSetting(TypedDict):
102102 """RGB color setting."""
103103
104104 type : Literal ["color" ]
105- family : Sequence [str ]
105+ tags : Sequence [str ]
106106 title : str
107107 hint : str | None
108108
@@ -115,15 +115,15 @@ class CustomSetting(TypedDict):
115115 Can be used for any required custom setting that is not covered by the
116116 default ones (e.g., fan curves, deadzones).
117117
118- The setting type is defined by family .
118+ The setting type is defined by tags .
119119 Then, the config variable can be used to supply option specific information
120120 (e.g., for fan curves how many temperature points are available).
121121
122122 To validate this setting, each loaded plugin's validate function is called,
123- with the family , config data, and the supplied value."""
123+ with the tags , config data, and the supplied value."""
124124
125125 type : Literal ["custom" ]
126- family : Sequence [str ]
126+ tags : Sequence [str ]
127127 title : str
128128 hint : str | None
129129
@@ -151,7 +151,7 @@ class Container(TypedDict):
151151 """Holds a variety of settings."""
152152
153153 type : Literal ["container" ]
154- family : Sequence [str ]
154+ tags : Sequence [str ]
155155 title : str
156156 hint : str | None
157157
@@ -162,7 +162,7 @@ class Mode(TypedDict):
162162 """Holds a number of containers, only one of whih can be active at a time."""
163163
164164 type : Literal ["mode" ]
165- family : Sequence [str ]
165+ tags : Sequence [str ]
166166 title : str
167167 hint : str | None
168168
@@ -221,7 +221,7 @@ class Mode(TypedDict):
221221)
222222
223223
224- Section = MutableMapping [str , Container ]
224+ Section = Mapping [str , Container ]
225225
226226HHDSettings = Mapping [str , Section ]
227227
@@ -251,7 +251,7 @@ def parse_defaults(sets: HHDSettings):
251251
252252def fill_in_defaults (s : Setting | Container | Mode ):
253253 s = copy (s )
254- s ["family " ] = s .get ("family " , [])
254+ s ["tags " ] = s .get ("tags " , [])
255255 s ["title" ] = s .get ("title" , "" )
256256 s ["hint" ] = s .get ("hint" , None )
257257 if s ["type" ] != "container" :
@@ -658,7 +658,7 @@ def unravel_options(settings: HHDSettings):
658658
659659
660660class Validator (Protocol ):
661- def __call__ (self , family : Sequence [str ], config : Any , value : Any ) -> bool :
661+ def __call__ (self , tags : Sequence [str ], config : Any , value : Any ) -> bool :
662662 return False
663663
664664
@@ -723,7 +723,7 @@ def validate_config(
723723 else :
724724 del conf [k ]
725725 case "custom" :
726- if not validator (d ["family " ], d ["config" ], v ):
726+ if not validator (d ["tags " ], d ["config" ], v ):
727727 if use_defaults :
728728 conf [k ] = default
729729 else :
0 commit comments