mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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:
|
||||
setting_data = overlay_data['setting']
|
||||
setting = setting is not None
|
||||
setting = setting_data is not None
|
||||
|
||||
if setting:
|
||||
if 'mode' in setting_data:
|
||||
|
Loading…
x
Reference in New Issue
Block a user