File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -332,18 +332,18 @@ async def full_update_device(self):
332332 def _types_finder (data ):
333333 """Detect types within locations from logs."""
334334 types = set ()
335- for measure , measure_type in HOME_MEASUREMENTS .items ():
335+ for measure , attrs in HOME_MEASUREMENTS .items ():
336336 locator = f".//logs/point_log[type='{ measure } ']"
337337 if data .find (locator ) is not None :
338338 log = data .find (locator )
339339
340340 if measure == "outdoor_temperature" :
341- types .add (measure_type )
341+ types .add (attrs [ ATTR_NAME ] )
342342
343343 p_locator = ".//electricity_point_meter"
344344 if log .find (p_locator ) is not None :
345345 if log .find (p_locator ).get ("id" ):
346- types .add (measure_type )
346+ types .add (attrs [ ATTR_NAME ] )
347347
348348 return types
349349
You can’t perform that action at this time.
0 commit comments