This commit is contained in:
joBr99
2023-12-02 14:23:43 +01:00
parent dfba3b6e84
commit adcb618a11
3 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ def calculate_dim_values(sleepTracking, sleepTrackingZones, sleepBrightness, scr
else:
return dimmode, dimValueNormal
def handle_buttons(entity_id, btype, value, entity_config):
def handle_buttons(entity_id, btype, value, entity_config=None):
match btype:
case 'button':
button_press(entity_id, value)