mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Fixes UnboundLocalError: local variable 'setting' referenced before assignment (#8782)
This commit is contained in:
parent
1adb5040e7
commit
32b7f4d16f
@ -288,7 +288,7 @@ class TadoClimate(ClimateDevice):
|
|||||||
|
|
||||||
if 'setting' in overlay_data:
|
if 'setting' in overlay_data:
|
||||||
setting_data = overlay_data['setting']
|
setting_data = overlay_data['setting']
|
||||||
setting = setting is not None
|
setting = setting_data is not None
|
||||||
|
|
||||||
if setting:
|
if setting:
|
||||||
if 'mode' in setting_data:
|
if 'mode' in setting_data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user