File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -122,14 +122,14 @@ def schemas_schedule_temp(schedules, name) -> float | None:
122122 return schema_list [i ][2 ]
123123
124124
125- def types_finder (data ):
125+ def types_finder (data ) -> set :
126126 """Detect types within locations from logs."""
127- types = set ()
127+ types : set = set ()
128128 for measure , attrs in HOME_MEASUREMENTS .items ():
129- locator = f".//logs/point_log[type='{ measure } ']"
129+ locator : str = f".//logs/point_log[type='{ measure } ']"
130130 if data .find (locator ) is not None :
131- log = data .find (locator )
132- p_locator = ".//electricity_point_meter"
131+ log : etree = data .find (locator )
132+ p_locator : str = ".//electricity_point_meter"
133133 if log .find (p_locator ) is not None :
134134 if log .find (p_locator ).get ("id" ):
135135 types .add (attrs [ATTR_TYPE ])
You can’t perform that action at this time.
0 commit comments