mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 22:40:44 +00:00
Use assignment expressions [A-I] (#66880)
This commit is contained in:
@@ -60,9 +60,7 @@ def deflection_entities_list(
|
||||
_LOGGER.debug("The FRITZ!Box has no %s options", SWITCH_TYPE_DEFLECTION)
|
||||
return []
|
||||
|
||||
deflection_list = avm_wrapper.get_ontel_deflections()
|
||||
|
||||
if not deflection_list:
|
||||
if not (deflection_list := avm_wrapper.get_ontel_deflections()):
|
||||
return []
|
||||
|
||||
items = xmltodict.parse(deflection_list["NewDeflectionList"])["List"]["Item"]
|
||||
|
||||
Reference in New Issue
Block a user