Read icon from fetch scene api

This commit is contained in:
Abdullah Alassaf
2024-12-05 12:42:53 +03:00
parent 26f50d59dd
commit 246098b83a
4 changed files with 37 additions and 42 deletions

View File

@ -758,6 +758,8 @@ class RoutineBloc extends Bloc<RoutineEvent, RoutineState> {
thenItems: [],
selectedFunctions: {},
scenes: [],
sceneId: '',
automationId: '',
automations: [],
isLoading: false,
errorMessage: '',
@ -1142,6 +1144,7 @@ class RoutineBloc extends Bloc<RoutineEvent, RoutineState> {
: action.type == 'automation'
? 'automation'
: 'action',
'icon': action.icon ?? ''
};
}