Remove unused variables from CeilingSensorDialog to streamline state management

This commit is contained in:
Faris Armoush
2025-04-10 16:35:19 +03:00
parent 74046c5aed
commit a5d26d04eb

View File

@ -54,15 +54,6 @@ class _CeilingSensorDialogState extends State<CeilingSensorDialog> {
content: BlocBuilder<FunctionBloc, FunctionBlocState>(
builder: (context, state) {
final selectedFunction = state.selectedFunction;
final selectedOperationName = state.selectedOperationName;
final selectedFunctionData = state.addedFunctions
.firstWhere((f) => f.functionCode == selectedFunction,
orElse: () => DeviceFunctionData(
entityId: '',
functionCode: selectedFunction ?? '',
operationName: '',
value: null,
));
return Container(
width: selectedFunction != null ? 600 : 360,