mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Fix Fritz call deflection list (#52443)
This commit is contained in:
parent
8c7ef5b1b9
commit
8347cf3731
@ -110,7 +110,10 @@ def get_deflections(
|
||||
if not deflection_list:
|
||||
return []
|
||||
|
||||
return [xmltodict.parse(deflection_list["NewDeflectionList"])["List"]["Item"]]
|
||||
items = xmltodict.parse(deflection_list["NewDeflectionList"])["List"]["Item"]
|
||||
if not isinstance(items, list):
|
||||
return [items]
|
||||
return items
|
||||
|
||||
|
||||
def deflection_entities_list(
|
||||
|
Loading…
x
Reference in New Issue
Block a user